Topic-icon Facebook debug error

Active Subscriptions:

None
9 years 5 months ago #28067 by ligend
Facebook debug error was created by ligend
Hi Al,
on
developers.facebook.com/tools/debug
i found this error:
More Than One OG URL Specified:

How can fix this?
Thanks
The topic has been locked.
Support Specialist
9 years 5 months ago #28074 by alzander
Replied by alzander on topic Facebook debug error
Without seeing the page you're debugging, I really don't know. Can you post or private message it to me? That error is when there are 2 extensions trying to add Open Graph tags, but I don't know what the other one is or how to fix it without seeing the page.

One thing you can try is moving our JFBCSystem plugin to the last (highest number) ordering position. With the v4.3 release, we've added some functionality to remove duplicate tags and only use ours, but it's possible it doesn't always work.

Let us know how that goes,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #28100 by ligend
Replied by ligend on topic Facebook debug error
Hello Al, I tried to move the plug-in but nothing.

I send the data to enter the domain and see. Thank you.
The topic has been locked.
Support Specialist
9 years 5 months ago #28178 by alzander
Replied by alzander on topic Facebook debug error
Ligend,
Thanks for the credentials and letting us see what was going on. I think I see the issue and it's a complication of having both JFBConnect and JLinked installed. Could you try the following code change on your site, which should disable the extra set of Open Graph tags?

In the /plugins/system/jlinkedsystem.php file, around line 186, you'll see the following line:
$this->_replaceGraphTags();
Comment that out by putting two slashes // in front of it.

Hopefully, that will fix you right up, but if not, let us know!

Thanks,
Alex
The topic has been locked.
Support Specialist
9 years 5 months ago #28181 by alzander
Replied by alzander on topic Facebook debug error
Ligend,
Actually, we investigated further and found the actual cause. It's a pretty quick change to JFBConnect and will be something in our upcoming v4.3.1 release as well. Please edit the /plugins/system/jfbcsystem/jfbcsystem.php file. At line 487, you'll see:
$contents = $openGraphLibrary->removeOverlappingTags($contents);
$contents = str_replace($placeholder, $graphTags, $contents); 
JResponse::setBody($contents);
Update that to look like the following:
$contents = $openGraphLibrary->removeOverlappingTags($contents); 
$contents = preg_replace($placeholder, $graphTags, $contents, 1); 
$contents = str_replace($placeholder, '', $contents); //If JLinked attempts to insert, ignore 
JResponse::setBody($contents);
Let us know how that goes, and good luck!

Thanks,
Alex
The topic has been locked.
Support Specialist
9 years 5 months ago #28182 by alzander
Replied by alzander on topic Facebook debug error
Actually, replace the code with the following code. We found a mistake with the change above:
$contents = $openGraphLibrary->removeOverlappingTags($contents);
$search = '/' . preg_quote($placeholder, '/') . '/';
$contents = preg_replace($search, $graphTags, $contents, 1);
$contents = str_replace($placeholder, '', $contents); //If JLinked attempts to insert, ignore
JResponse::setBody($contents);
Sorry about that. We'll be testing more before the release of v4.3.1, but would love your feedback ahead of time as well!

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

None
9 years 5 months ago #28187 by ligend
Replied by ligend on topic Facebook debug error
Ok AL, now it's work!!

I have not yet understood how the setting of the parameter OG:IMAGE, but at least everything else work fine. :))

Thanks
The topic has been locked.
Support Specialist
9 years 5 months ago #28197 by alzander
Replied by alzander on topic Facebook debug error
Awesome! Thanks for the feedback to let us know it worked! That change will be in the next release of JFBConnect, so you won't have to worry about this issue going forward.

As for the og:image, there's a few ways that parameter can be set. If you're using the Open Graph plugins that are now a part of JFBConnect, they will try to automatically set the image if you're in a supported extension. In a Joomla article, for instance, the Open Graph plugin will automatically choose the first image in the article and set the og:image tag. The Open Graph plugins work for a variety of extensions.

Additionally, in an article or any other page, you can add the tag below which will set the specific image you want for that page. That's good in case the automatic image doesn't work, or you want more control of the selected image:
{SCOpenGraph image=http://site.com/link-to-image.jpg
Hope that explains, but if you have other questions, just let us know!

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

None
9 years 5 months ago #28198 by ligend
Replied by ligend on topic Facebook debug error
Good. But my problem are only on frontpage of my site.
In all componente, K2, Jomsocial Datso etcc... it's work fine, but when try to share my intro page ... www.21dieci.it ... i can not found any images.

I try to insert this string on my index.php?
Or set this on general features on JFBConnect?

Thanks
The topic has been locked.
Support Specialist
9 years 5 months ago #28228 by alzander
Replied by alzander on topic Facebook debug error
I wouldn't do it in your index.php file. I'd recommend going to the Open Graph -> Settings area of JFBConnect. In the "Defaults" box, add:
image=http://site.com/good-default-image.jpg
That image will then be used on all of your pages as a fallback if no other image is defined. That's great for a logo or other good 'generic' image to represent your site.

Beyond that, you can create a Custom HTML module and have it only display on your home page. Disable the title, and in the HTML area, just add the following text:
{SCOpenGraph image=http://site.com/good-image-for-home-page.jpg}

Hope that helps,
Alex
The topic has been locked.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Get the Hide and Seek Toy on Amazon