Topic-icon Remove og prefix from ?

Active Subscriptions:

None
9 years 4 months ago #60832 by socialemotional
At my site, JFBConnect is placing the following at my html tag:
<html prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" class="">

I'm not using FB, nor JFB OG tags, so, is there a way to remove this alltogether? (I've turned off all the OG that I could find in the configuration of the component, but I can't find any setting to turn it off at the html tag).

How can I remove this?
The topic has been locked.
Support Specialist
9 years 4 months ago #60835 by mel
Replied by mel on topic Remove og prefix from ?
Looks like this would involve a code change. In /components/com_jfbconnect/libraries/provider/facebook.php, the following line of code around line 312 is where we're changing that namespace and could be commented out.
$body = str_ireplace("<html ", '<html prefix="' . $ogNamespaces . '" ', $body);

I've added an issue to our tracker to improve this code/functionality, but in the meantime commenting out that code should work for you.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #60840 by socialemotional
thnaks, I'll give it a try, and hope that your change reaches production soon.
The topic has been locked.
Support Specialist
9 years 4 months ago #60843 by alzander
Replied by alzander on topic Remove og prefix from ?
I wanted to follow up on this as I'm curious as to why you want to remove the tag. I fully understand not wanting to have additional pieces of code in the website, but beyond that, is there an issue that you think it's causing or other problems being introduced by this? Otherwise, is it simply just to clean house of unwanted text in the page?

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

None
9 years 4 months ago #60844 by socialemotional
The answer is very simple:
Follow the link for the fb og that is placed: Title

It throws an error, this is most certainly because I have no FB settings.

Otherwise I wouldn't mind that extra code.
The topic has been locked.
Support Specialist
9 years 3 months ago #60851 by alzander
Replied by alzander on topic Remove og prefix from ?
That's not a real link to be visited. I know that sounds silly, but the html element on the page can specify different 'namespaces' which help describe how some functions of the page can perform if they are there. The browser or, in this case, Facebook, can understand what those links means even if they aren't directly visitable. So, Facebook's sees the namespace tag and knows that there may be Open Graph tags on the page that should be processed. That's all it means.

There's no href tag for that link and it's not in the body, so this won't be something that any normal user would be able to visit.

I hope that helps explain further.

Thanks,
Alex
The topic has been locked.