Topic-icon How to disable open graphs?

Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55385 by fb_1580132693
Hello,
I'd like to disable open graphs inserted by JFBC in some areas of my site (for some components' pages)

Is that possible, I can't find any setting for that in backend.
And if not, how can I disable open graphs at all then?

Thank you
Last edit: 10 years 7 months ago by fb_1580132693.
The topic has been locked.
Support Specialist
10 years 7 months ago #55393 by alzander
We don't have a method to disable Open Graph tags completely. However, in the JFBConnect -> Open Graph -> Settings area there is a "Skip Tags" setting. In there, you can put any tags you don't want JFBConnect to set on any page.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55427 by fb_1580132693
I can't see that option in the open graph > configuration page
I have a version 6.2.2 on this site, maybe that feature was not included in that version?

Thanks

p.s.
btw I tried to add a screenshot using the "attachments" link, after uploading and inserting the code in the post the attachment window is impossible to close, forcing me to refresh the page and rewrite the post, you want to check that
Last edit: 10 years 7 months ago by fb_1580132693.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55428 by fb_1580132693
must have been my adblock chrome extension, now it's working

File Attachment:
Last edit: 10 years 7 months ago by fb_1580132693.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #55429 by fb_1580132693
Maybe there is a simple hack I could do to the plugin code
in order to avoid open graphs to becreated when a certain jooma component is being used?
which file, which code and where?

A friend just suggested

u need to ask jfbconnect developers to tell u how to do, i
think u must add condition in jfb plugin like this ::

if($_REQUEST == 'com_cobalt'){
return;
}
Last edit: 10 years 7 months ago by fb_1580132693.
The topic has been locked.
Support Specialist
10 years 7 months ago #55434 by mel
Replied by mel on topic How to disable open graphs?
In the JFBCSystem plugin file at /plugins/system/jfbcsystem/jfbcsytem.php, in your version around line 287, the following call will add the Open Graph tags to the page:
$this->replaceGraphTags();

If you go into that method, you can see the following method calls that will generate the lists of tags to add to the page. So either you can skip the entire function all together, or you can comment out the appropriate ones:
$openGraphLibrary->addOpenGraphEasyTags($newGraphTags);
$openGraphLibrary->addDefaultSettingsTags($defaultGraphFields);
$openGraphLibrary->addAutoGeneratedTags($locale);

-Melissa
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #55435 by fb_1580132693
Thanks Melissa!
The topic has been locked.