Topic-icon JFBConnect not using sh404SEF metas for Open Graph tags

Active Subscriptions:

None
From what I understood, JFBConnect is supposed to use meta description and title to build Open Graph tags (by default). On this page for example, it is not:
www.altitudes.asso.fr/presentation/faq

I'm using sh404SEF with custom metas, and the "System - JFBCSystem" plugin is the last but one of system plugins (the last one is "System - Cache" and is disabled). What else should I check?
The topic has been locked.
Support Specialist
There's a few reasons that it may not be using the sh404SEF meta, most of which are easily correctible. However, we'd need to know a little more about your configuration:
* What version of JFBConnect are you using?
* Are you using any Open Graph plugins, included with JFBConnect?
* What extension is creating that page that you linked to?

Finally, please post from the account you subscribed to JFBConnect from. Priority support is for active subscribers only.

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

None
I'm using JFBConnect 4.3.0 and sh404SEF 3.5.0.1295.
I inspected the code (also on more recent versions of the components that I don't have installed) and it seems to me that it can't work!

In shPageRewrite.php, sh404SEF does something like:
$buffer = preg_replace( '/\<\s*title\s*\>.*\<\s*\/title\s*\>/isU', '<title>'
            . $shPageInfo->pageTitle .'</title>', $buffer);
where $buffer = JResponse::getBody();

In openGraph.php, JFBConnect does:
$doc = JFactory::getDocument();
        $title = $doc->getTitle();
to get the title to build the Open Graph tag.

This can't work if you expect JFBConnect to reuse the title built by sh404SEF...

If I add something like:
$document = &JFactory::getDocument();
    $document->setTitle($shPageInfo->pageTitle);
in sh404SEF code, then it works: Open Graph title tag is the same as sh404SEF title.

I may be missing something, but...
The topic has been locked.
Support Specialist
We used to work with sh404SEF's meta tags. Not sure if they changed something and moved to strictly doing replacements on the output HTML or not. They should definitely be doing things the 'Joomla way' at least, like you mention, to make sure the tags are set in the JDocument object so JFBConnect (and other extensions) can see those tags properly.

I'd bring this up with the sh404SEF developers and let them know about your issue and that it would be best if they'd use the tools Joomla provides for better compatibility.

Alex
The topic has been locked.
Active Subscriptions:

None

alzander wrote: I'd bring this up with the sh404SEF developers


Ooops, I realize that I read "I will" where you wrote "I would"... Does that mean that you expect me to do it and did nothing on your side? Just to be sure...

Thank you
The topic has been locked.
Support Specialist
Yes, I would recommend contacting them and letting you know it's a problem. Developers are much more receptive to their own customers letting them know about issues than other developers telling them. They're own customers are the ones that they ultimately answer too.

Hope that helps,
Alex
The topic has been locked.