Topic-icon JFBConnect to pull from sh404sef

Active Subscriptions:

None
7 years 7 months ago #59310 by carrollwhite
I'm running JFBConnect 7.0.3 and sh404SEF 4.8.0.3423 on Joomla 3.6.2.

sh404SEF manages the URLs, with titles and descriptions.

JFBConnect manages my social posting buttons, open graph markup, etc.

I'm really pleased with how JFBConnect works, but it doesn't seem to be pulling the page titles and descriptions from sh404sef. What are your suggestions on how to implement this?
The topic has been locked.
Support Specialist
7 years 7 months ago #59322 by alzander
JFBConnect uses whatever is set within Joomla for the Description and Title tags. For the description tag, for instance, we call:
$doc = JFactory::getDocument();
        $desc = $doc->getDescription();
That's asking Joomla what the description for the current page is.

There are only 2 reasons I can think of for the tags for sh404SEF to not be used:
1) They're changing the tags after we ask Joomla for what they are. To fix this, please go into the Plugin Manager. In the 'system' group of plugins, make sure the JFBConnect plugin is ordered *after* the sh404SEF plugins. That should make sure sh404SEF does its work before JFBConnect tries to do anything.
2) sh404SEF is going outside of Joomla to set the tags in some other way.

My guess is it's #1 because we haven't heard this issue before and many users use both JFBConnect and sh404SEF.. but let us know if #1 fixes things or not and we'll continue to help however we can.

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

None
7 years 7 months ago #59347 by carrollwhite
I've arranged the plugs-ins as:
sh404sef - System plugin
System - JFBCSystem

sh404sef still seems to be doing it's thing; the title tag and meta description are correct.

JFBC seems to be pulling it's og:description from the first bit of text on the generated page, not from the meta description.
The topic has been locked.
Support Specialist
7 years 7 months ago #59352 by alzander
Do you have any Open Graph plugins enabled on your site? Those are plugins that come with JFBConnect to automatically detect and use a good title, description and image. If you have enabled the Open Graph - Content plugin, please try the following:
* Go to the Open Graph area
* Create a new Object of type Content - Articles
* In the settings, use:
** Name - "All Articles" or something like that
** Type "article"
** Built-In Facebook Object - Check this

Then, on the right side, choose the Root level or Parent category, so this object will apply to all content on your site. In the Open Graph tag options, set what you want for how the description is set or other parameters.

This object will apply to all content by default. Then, you could make other objects to apply to sub-categories if you want those sections of the site treated differently.

I hope that helps explain things, but if you have any other questions or issues, please let us know.

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

None
7 years 7 months ago #59369 by carrollwhite
Open Graph plug-ins were enabled, but I hadn't set up any OG objects.

Your solution worked out great!
The topic has been locked.
Support Specialist
7 years 7 months ago #59375 by mel
Glad Alex helped you get the issue resolved. Let us know if you run into any further problems.

-Melissa
The topic has been locked.