Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Like button - fetches "wrong" image [duplicate]

Possible Duplicate:
How does Facebook Sharer select Images?

I'm using the following code to add a Facebook like button to my site:

<iframe src="http://www.facebook.com/plugins/like.php?href=XXXXXXXX&amp;send=false&amp;layout=button_count&amp;width=50&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:21px;" allowTransparency="true"></iframe>

When I later look at my wall I can see the post that I've just liked. But it shows a gui-widget (from the sites grafik) not any other "valid" images. Is it possible to specify which image to show?

like image 975
Niklas Hultgren Avatar asked Jan 20 '23 20:01

Niklas Hultgren


1 Answers

You'll want to use open graph tags (namely <og:image>) to specify what image you want to show.

Additionally, you can use the URL Linter to debug what you're sending Facebook. You may have some issues with the linter as it says it decaches when you lint a URL, but in practice it doesn't always work that way.

like image 60
Jimmy Sawczuk Avatar answered Feb 13 '23 20:02

Jimmy Sawczuk