Topic-icon Problems with og:description on JEvents event detail page

Active Subscriptions:

None
I have JEvents running on our site and have been using the JEvents social sharing on event details pages while using JFBConnect social sharing on other pages on our site. This used to work fine but at some point a problem has developed on the events page. The JEvents plugin is correctly setting the og:description but JFBConnect is setting another one with the generic site description info in it. When I examine the page I can clearly see both, with the correct description from JEvents coming first on the page. When I push the share to FB the undesired og:desciption from JFBConnect is what is being sent. When I look at the page on socialdebug.com both og:description tags are shown, with the JEvents one showing first. I'm unfortunately not sure how long this has been going on because our site has been in development for many months and this feature hadn't been tested recently when we went live this past weekend.

So, how do I get the right tag used or failing that, how do I suppress JFBConnect from adding the undesirable og:description tag to the page?
The topic has been locked.
Support Specialist
There isn't a way to selectively disable the og:description tag from JFBConnect in some content. You can disable generation of the description tag entirely in the Open Graph settings area of JFBConnect, but I don't think that's what you want.

For now, I'd recommend re-ordering the JFBCSystem plugin so it's after the JEvents system plugin. That may make it do what it's supposed to when rendering the og:description tag. I'm assuming/hoping that JEvents is setting the standard meta description tag properly so it's not generic. If so, then JFBConnect should use that for the og:description tag and it should be usable when sharing.

Please test to see if re-ordering the JFBCSystem plugin helps and let us know how it goes. If it doesn't help, let us know a URL that has the issue as that may help narrow things down as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
7 years 7 months ago - 7 years 7 months ago #59795 by marbur
Reordering unfortunately didn't help. Here's one of the pages that has two og:description tags with the incorrect one having precedence when it's shared: valhallasgate.com/index.php/event-calend...17/warmachine-hordes

Thanks.
Last edit: 7 years 7 months ago by marbur.
The topic has been locked.
Support Specialist
I don't believe that extra og:description tag is coming from JFBConnect. The Facebook App ID set there is different than what you have set in JFBConnect, which could cause you other issues.

Can you try disabling the JFBCSystem plugin, temporarily, to see if that fixes the issue? If not, then there's nothing we can do.

If that does fix the issue, please disable JCH Optimize, again temporarily, so we can see what the page looks like when it's not being compressed, minified and otherwise altered as it will help us narrow things down.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
The Facebook App ID that is showing up is the App ID for the JEvents social plugin.

I created a duplicate of our site and went through the following steps:

1. Check an event page (vgltst.valhallasgate.com/index.php/event...99/x-wing-tournament) and verified that it was indeed showing the double og:description tags
2. Disabled the JFBConnect plugins for the site
3. Cleared the site caches and my browser cache
4. Reloaded the event page and checked the source. This time it was showing only a single og:description tag and it had the desired details.
5. Re-enabled the JFBConnect plugins for the site
6. Cleared the site caches and my browser cache
7. Reloaded the event page and checked the source. It was now back to showing the double og:description tag

I can provide you with credentials for vgltst.valhallasgate.com (the copy site) if it would help at this point.
The topic has been locked.
Active Subscriptions:

None
So, any ideas about this yet?
The topic has been locked.
Support Specialist
Yes, please Private Message us credentials to a site where we can test. Since JCH Optimize is still enabled on the site posted above, it's very difficult to understand how specific tags are being inserted into the page. With admin credentials, we'll be able to investigate much quicker.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
I've sent credentials and I've disabled JCHOptimize on vgltst.valhallasgate.com

I have however tested both with and without JCHOptimize (and been very thorough with cache cleaning and such) and I get the same results.

The results of my testing show the following:
1) Things work correctly on the JEvents page if the JFBConnect plugins are disabled.
2) Sometimes when the JFBC plugins are enabled there are two og:description tags in the page, the desired one from JEvents and the site meta one from JFBC.
3) Other times with the plugins enabled the only og:description tag is the site meta data from JFBC (though when plugins are disabled again the desired tag from Jevents reappears)
4) It seems that the different scenarios (#2 and #3 above) might be related to whether or not there are \n \r characters in the JEvents {Description} field used for the og:description tag.
5) The JFBConnect sharing plugins work fine on the other pages in the site

You may already be familiar, but iin case you're not, the JEvents file that creates the og: tags on the event details pages is: public_html/vgltst/plugins/jevents/jevfacebooksocial/jevfacebooksocial.php

Any of the JEvent detail pages (access by clicking on an event listing on the main site calendar) can be used to test. Direct link to one examples is: vgltst.valhallasgate.com/index.php/event...99/x-wing-tournament

Thank you for looking into this.
The topic has been locked.
Support Specialist
Mark,
Thanks for the credentials to the development site. I was never able to see the duplicated og: tags on that site. I do see the generic og:description. JFBConnect is taking that straight from the meta description tag on the page, which is what search engines and other scraping tools would use. They look to have a Meta Description plugin available below, but I'm not a subscriber, so I can't access it:
www.jevents.net/download-area/bronze-dow...tags-for-event-pages
It seems like a pretty basic feature though, so I'm surprised that's a for-pay item.

Unfortunately, the only thing I can recommend is to make sure that JEvents is setting an appropriate meta description tag for the event so that JFBConnect can use it. The only other option is to disable having JFBConnect generate any og:description tags by setting that in the Skip Tags section of the Open Graph -> Configuration area.

JFBConnect isn't able to scan JEvents descriptions without a specialized Open Graph plugin, which we don't have.

I hope that helps explain things,
Alex
The topic has been locked.