Search code examples
facebooksharethis

How to show particular image as thumbnail while implementing share on Facebook?


I am trying to implement share this method. I am using the code as follows

http://www.facebook.com/share.php?u=my_website_url

Now when Facebook is showing it showing some thumbnails at left side. These images are picked from my website. How can I pick a particular image as thumbnail or at least stop it showing thumbnail?

You can check it with my blog address.


Solution

  • This blog post seems to have your answer: http://blog.capstrat.com/articles/facebook-share-thumbnail-image/

    Specifically, use a tag like the following:

    <link rel="image_src" 
          type="image/jpeg" 
          href="http://www.domain.com/path/icon-facebook.gif" />
    

    The name of the image must be the same as in the example.

    Click "Making Sure the Preview Works"

    Note: Tags can be correct but Facebook only scrapes every 24 hours, according to their documentation. Use the Facebook Lint page to get the image into Facebook.

    http://developers.facebook.com/tools/lint/