× Joomla Facebook Connect support forum

Topic-icon K2 Incorrect Image Shown Using JFBCLike tag

Active Subscriptions:

None
13 years 1 month ago #8090 by rm798
Hi there I recently purchased your extension and I am excited to try it out however...

I have a problem with the JFBCLike tag that I have manually inserted at the bottom of my K2 articles. When I click the "Like" button everything works beautifully, however when I view on my Facebook Wall the thumbnail image pulled from the K2 article page is not from the article but from other images contained in modules from the same page.

I have read www.sourcecoast.com/forums/topic?id=1747 and taken action but it hasn't helped. Please note the "System - JFBCSocial Plugin" is published. Could you please advise me what could be causing this problem..thank you.
The topic has been locked.
Support Specialist
13 years 1 month ago #8095 by alzander
Facebook just updated their Like button to include an image by default for all "Likes". If the image isn't specifically specified, Facebook will look at the page and try to determine the 'best' image to use for the Like. We're working on a method for the 3.2 release for an admin to specify the image (and some other attributes) per page, and where possible, we'll try to automatically add the appropriate info.

If you'd like to do it manually, for now, even if it's hard-coded to the same image across your site, you can add the following tag to your template header sections:
<meta property="og:image" content="YOUR DEFAULT IMAGE"/>

For more information about the available tags, see:
developers.facebook.com/docs/opengraph/
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #8139 by rm798
Thanks heaps for the speedy response and helpful info!

I have now implemented your suggested code and it's a relief to have control over that image that shows in Facebook. I am really looking forward to the new improvements in 3.2 and the increased admin control over indivdual pages.

Thanks again for a super component and great support..awesome!!!
The topic has been locked.
Support Specialist
13 years 1 month ago #8155 by alzander
No problem. We knew some changes were coming to the Like button, and don't like that we're behind the ball on this one. Glad we could help you put a band-aid on the situation for now. We're excited about 3.2 for this improvement, and many others. Look for it in the next few weeks.

Thanks for compliments on JFBConnect, we love to hear it! :)
The topic has been locked.
Support Specialist
13 years 2 weeks ago #8781 by mel
We've just released a new version 3.2 of JFBConnect tonight that adds capabilities to set up the Open Graph settings. You can set up the properties in Components > JFBConnect > Social > Open Graph. There are several ways to get the properties set: 1) using the {JFBCGraph} tags, 2) in the configuration area and 3) allowing JFBConnect to figure some of the required values out. Check out the configuration area for more details and examples.
The topic has been locked.
Active Subscriptions:

None
13 years 1 week ago #9184 by rm798
Brilliant news about the new version..thanks Mel for the update and "how to" info...it's very appreciated! I am looking forward to trying it all out.

Kind regards...Richard
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12621 by getimo
Hello,

since I don't want to specify always a URL for the best image. I'd like to use the "Use first image in article for default" option. But that doesn't work for K2 items. I'd really appreciate an enahncement on this if possible to work for K2 items too. That would make the thing perfect :)

Thank you in advance for any response.

PS: In jReviews it does work: example kesselfieber.de/stuttgart/imbisse/172-vegi-voodoo-king

EDIT: I've found this snippet: snipplr.com/view/56954/joomla-k2-image-naming/ I think it should be possible to set that image for likes and shares.

Thomas
The topic has been locked.
Support Specialist
12 years 8 months ago #12634 by mel
Thomas, I've added a task for the next release to look into getting the first image to work for K2.
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #13049 by getimo
Hello Melissa,

thank you for your fast response. Is there any estimated timeframe for that feature/the next release?

getimo
The topic has been locked.
Support Specialist
12 years 7 months ago #13053 by mel
I've checked the code fix in already and we're planning a new release towards the end of this week hopefully. In the meantime, the change is very simple, so if you'd like to manually update the code yourself, you can edit the following in plugins/content/jfbcontent.php, around line 228:

Change
if ($socialGraphEnabled == "1" && $socialGraphFirstImage == "1" && $view == 'article')
to
if ($socialGraphEnabled == "1" && $socialGraphFirstImage == "1" && ($view == 'article' || $view == 'item'))

If you do the change and have any issues with it, please let us know. We'll be doing more extensive testing this week before the release.

Thanks!
The topic has been locked.