When I do an “I Like” on a website with the facebook plugins, I see on Facebook there is the Title of that page, a description, an image, and so on…
If I try to put the plugins on my website and do an “I Like”, I can only see title on of the main page, nothing more!
On which tag need I to insert the image path, description, and a custom title?
Actually, my doctype is :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
so, not an HTML5 page.
You should readup on the Open Graph Protocol.
Essentially you’ll need to embed some
og:tagsonto your page so that Facebook can know what information to display for the preview of the like action.The tags should be placed within your
headtag and they look something like this :Don’t forget to substitute the values there for your own values.
If you are having difficulties in choosing what tags to use or what values to use – you should check out this great tool that Facebook has provided us :
Facebook’s URL Debugger
This tool will show you exactly how Facebook views your URL and it will also alert you to any errors that you might have with your
og:tags.Be aware of the caching that Facebook does of your tags :
Taken from the Open Graph Documentation