Topic-icon og:title overruling easyblog / easydiscuss title

Active Subscriptions:

None
hello,
I set some default values like title, sitename, image and description in the opengraph area.

Now when sharing an easyblog or easydiscuss post manually to facebook the title is not fetched, instead it shows the default value I entered.
However for description or the image it works correctly.

Is there something I'm missing here?
Thanks, Alex
The topic has been locked.
Support Specialist
13 years 2 months ago #32135 by alzander
There's an ordering bug with JFBConnect right now when using default tags, Open Graph plugins and {SCOpenGraph ...} tags. The meta data should be set in the following order: {SCOpenGraph ..}, Open Graph plugin, and then default, so that if one doesn't exist, the next is used.

I haven't heard of the default tags being used instead of the Open Graph tags. However, looking at the EasyBlog Open Graph plugin code, I believe I see what's happening. Since EasyBlog sets it's own title tags, we don't try to overwrite them in the plugin.. but then, later in JFBConnect code, we set the default tag if no plugin or {SCOpenGraph title=xyz} tag is found. So, the plugin is trusting EasyBlog to set the tag, and JFBConnect isn't trusting something else to do it.

We're looking into a solution for the ordering issue mentioned first, and will look into the EasyBlog issue you found as well. Would you want the standard meta title to be used? If so, that'd be pretty easy to implement with a line or 2 of code. Otherwise, I'd recommend removing the default title tag for now.

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

None
13 years 2 months ago #32137 by remington
thanks alex for your promt reply and for describing.
currently I got the easyblog opengraph plugin disabled as I haven't setup any special actions right now.
So my problem with the default og:title is conflicting with easyblog and easydiscuss extension itself but not the plugin. I now removed the value and then the titles are showing up correctly. But of course if you'd have a 2 lines solution with keeping the value and still showing the correct title feel free to share it ;)
The topic has been locked.
Support Specialist
13 years 2 months ago #32145 by alzander
Alex,
I've been thinking about this some more. Honestly, I wouldn't recommend using a title default tag. JFBConnect defaults to using the meta title tag for a page as the Open Graph title. Generally, that should be right or is something that you can configure in the extension itself (like the title of an EasyBlog article). Really, it comes to, I'm not sure why your 'normal' title tags are something you wouldn't want used as the OG title. If there's a reason you want it FB specific or something, let me know.. mainly curious.

If you want the code for EasyBlog, we can do that to. You would need to install and enable the Open Graph - EasyBlog plugin though. That's where we'd make the change since that's EasyBlog specific. If we did it in the main JFBConnect component, that would work on all pages and would make it so no default title tag worked.

Let me know if you still want the code. Not trying to say no, but do want to make sure you understand how JFBConnect is set to work and would love feedback if you need it otherwise to see if we should be changing our behavior somehow.

Thanks,
Alex
The topic has been locked.