× Joomla Facebook Connect support forum

Topic-icon Overriding Open Graph tags

Active Subscriptions:

None
13 years 9 months ago #25922 by rjestudio
Hi there,
greetings for the great job you've done with the JFBConnect component.
I'm PHP developer and I have some parts of my website where I have included some
$doc->setMetaData()
to customize my Open Graph tags, like the og:type Tag. But JFBC is still including the default tags, so at the end I get the tags twice in my code. What is the fix for this? Can I configure JFBC to not generate tags that are already set?

Thanks in advance
The topic has been locked.
Support Specialist
13 years 9 months ago #25933 by alzander
Replied by alzander on topic Overriding Open Graph tags
We don't have a way to detect if tags are being set some other way and prevent our tags from being set. The best suggestion I have for now is to replace the $doc->setMetaData().. tags you're using now with {SCOpenGraph type=xyz} tags. Any of those tags in the output will automatically be converted to the right OG tag.

For the next release, v4.3, we'll be adding a new Open Graph plugin system. With that, you'll be able to create plugins for individual components to automatically insert OG tags on a per-page/per-component basis. The new system will also allow for easy Open Graph actions ('John read xyz', 'John listened to some song', etc). That release should be out in October, and may help you with your customizations as well.

Hope that helps explain, but if you have any questions/feedback, let us know!
Alex
The topic has been locked.