Skip to content Skip to sidebar Skip to footer

How Do I Prevent An Image From Showing Up As A Thumbnail Option When My Site Is Shared On Facebook?

When a user shares my site on Facebook, Facebook allows them to select a thumbnail image to go along with the share. I'd like the only image made available to be my site logo, but

Solution 1:

Hey, that's quite easy, you just need to specify and open graph metatag in your page.

For you it would be as simple as adding this to your page HEAD :

<metaproperty="og:image"content="YOUR_IMAGE_URL"/>

You can find a complete reference of open graphs metatags here : http://developers.facebook.com/docs/opengraph/

And you can test if facebook find your image correctly here : http://developers.facebook.com/tools/lint

(You need to test it using the second link so that facebook will refresh its cached informations about your site).

Cheers :)

Solution 2:

Just did this for another app: the opengraph links actually didn't work for me.

What worked was was adding a line like this

<link rel="image_src" href="http://{site hostname}/{path to icon}" />

to the HEAD of the page. I added the opengraph tags anyway, but so far the image_src has performed perfectly.

Post a Comment for "How Do I Prevent An Image From Showing Up As A Thumbnail Option When My Site Is Shared On Facebook?"