Topic-icon Image notshowing on fb from k2 article

Active Subscriptions:

None
11 years 6 months ago #48772 by douagg
I've setup JFBC everything looks ok for me,
I did not setup any objects in opengraph (should I?).
I've activate the social toolbar and tried to post an article to facebook, my grade is A but the image isn't showing up on FB..
Post preview: Website preview
Also I'm getting an error saying: This page has both an og:url tag and a rel="canonical" tag, but they are set to different values. The Open Graph information shown below may not be used by Facebook.
Website: Website article
What am I doing wrong?

Lastly, I'm using K2 CCK and after I've activated JFBC my category view has an extra
<div style="clear:left"></div>
that prevents my image float on the left of my text,,
The topic has been locked.
Support Specialist
11 years 6 months ago #48782 by mel

I did not setup any objects in opengraph (should I?).

Regarding images not showing in your preview, first turn on the 'Open Graph - K2' plugin that was installed with JFBConnect. Without any objects set up, when this plugin is enabled, JFBConnect will try to automatically set the og:tag by grabbing the first image out of your K2 items. If you'd like a different image set, like the K2 main image for the item, then you will need to create an object in the JFBConnect > Open Graph > Objects configuration area.

Also I'm getting an error saying: This page has both an og:url tag and a rel="canonical" tag, but they are set to different values. The Open Graph information shown below may not be used by Facebook.


Navigating to your example link from above www.dafopoulou.gr/news/item/53-caremed-creams.html the following values are set, which are not matching. Going to both values, the page content looks the same, so it would be ok to ignore this warning.

Your Canonical URL (which something else sets, whether Joomla or other component on the page, and does not look correct):
www.dafopoulou.gr/news/item/53-caremed-c...-caremed-creams.html
Your Og:Url tag (which JFBConnect sets and looks proper):
www.dafopoulou.gr/news/item/53-caremed-creams.html

Lastly, I'm using K2 CCK and after I've activated JFBC my category view has an extra <div>

Are you using the JFBCContent plugin to insert Like buttons/Comment boxes onto your category pages?

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48783 by douagg

Regarding images not showing in your preview, first turn on the 'Open Graph - K2' plugin that was installed with JFBConnect. Without any objects set up, when this plugin is enabled, JFBConnect will try to automatically set the og:tag by grabbing the first image out of your K2 items. If you'd like a different image set, like the K2 main image for the item, then you will need to create an object in the JFBConnect > Open Graph > Objects configuration area.


It's already published..

Are you using the JFBCContent plugin to insert Like buttons/Comment boxes onto your category pages?

Yes I do..
The topic has been locked.
Support Specialist
11 years 6 months ago #48784 by mel
For the div clear left, can you replace line 270 in /plugins/content/jfbccontent/jfbccontent.php
$buttonText .= '</div><div style="clear:left"></div>';
with
$buttonText .= '</div>';

For the image, I see that the og:tag is getting set properly. When I try to run your site through the Facebook Open Graph Debugger, it appears that Facebook is unable to connect to your site to scrape the page. If you go to it, enter your URL, hit debug, then hit re-scrape, the following error is returned "Curl Error : WRITE_ERROR Error while processing content unencoding: invalid block type". The link for the debugger is developers.facebook.com/tools/debug/
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48786 by douagg
<div style="clear:left"></div> Fixed!

What can I do for this?

For the image, I see that the og:tag is getting set properly. When I try to run your site through the Facebook Open Graph Debugger, it appears that Facebook is unable to connect to your site to scrape the page. If you go to it, enter your URL, hit debug, then hit re-scrape, the following error is returned "Curl Error : WRITE_ERROR Error while processing content unencoding: invalid block type". The link for the debugger is developers.facebook.com/tools/debug/

The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48787 by douagg
OK, got it!
It looks like that Gzip compression should be OFF in order FB to work correctly!

Thank you for your time! :D
The topic has been locked.
Support Specialist
11 years 6 months ago #48789 by mel
Great that you got it working! Let us know if you run into any other issues.
The topic has been locked.