If you want to set the image to use in Feed posts on Facebook, you need to set an Open Graph tag on the page. If the page you are Like'ing is a Joomla content article, you can install and enable the Open Graph - Content plugin. That will try to select the first image in your article and use that as the image.
Alternatively, you can add the following tag into your page to set the Open Graph image:
That will set the image for Facebook to use when a post is created.
I hope that helps, but if you need more information, just let me know.
This is a custom html module I want to put the button "like". I wish to associate an image to publish on facebook.
I tried your code, but it still appears instead of the image a gray rectangle.
Look here : http://www.coulisses-tv.fr/index.php?op … Itemid=465
My syntaxe is :
Your syntax is right. After you change the image, it can take Facebook a few days to 'see' the change. I just looked at your page, and the og:image tag is being properly set in the HTML.
You can try later today to use the Facebook Open Graph Debug Tool. It can be used to scan your page and try to update their cache. If it doesn't show the right results in 24 hours or so, let us know and we'll gladly help try to look into things further.
Actually, in the Facebook Debug Tool page, there's a link at the bottom for "See what Facebook sees". For your page, that's bringing up an almost empty document:
https://developers.facebook.com/tools/d … emid%3D465
I'm not sure why that is. Do you know if you have a template switcher, security extension, or something else that may be changing the content for search bots or other automated tools? If so, that will need to be disabled so Facebook can properly scan your pages.