Facebook Like button - fetches "wrong" image

25,072

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.

Share:
25,072
Nicke
Author by

Nicke

Ambitious, dedicated and "a social player" are words that form a representing picture of me as a person. I like to meet new people and I find it quite easy create relationships and to work with others. In addition, I have a strong driving force, am careful and I work structured. Technology is something that interests me quite a bit and I like to know my way around new technologies and frameworks. I'd like to title my self as a seniror full stack developer. I can handle everything from frontend to backend. I'm happily married since 1998 and me and my wife have three kids. On my spare time I like to go for a run - running is one of my great passions in life. My current PR on the half marathon is 1:32:19.

Updated on July 09, 2022

Comments

  • Nicke
    Nicke almost 2 years

    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?