homepage Welcome to WebmasterWorld Guest from 54.211.230.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
Specify Facebook thumbnail
cyberdyne

5+ Year Member



 
Msg#: 4027616 posted 10:08 pm on Nov 18, 2009 (gmt 0)

How, using robots.txt, can I specify which image Facebook uses as the thumbnail when the link to a specific site is posted either on someone's Facebook wall or via email?

Currently, for a particular site, there are 8 images available to choose from but none are representative of the sites' content are give a clear image of what's available on the site. So, I've created a thumbnail size screenshot of the site and would like to point the facebook bot (facebookexternalhit/1.0) to that specific image.

Is this possible?

Many thanks

 

cyberdyne

5+ Year Member



 
Msg#: 4027616 posted 10:25 am on Nov 19, 2009 (gmt 0)

I am also happy to use .htaccess if that would be easier to achieve what I want.
Is there anyone who could help with this please?
Many thanks

cyberdyne

5+ Year Member



 
Msg#: 4027616 posted 11:01 am on Nov 19, 2009 (gmt 0)

I found the answer and thought I'd share it:

Add the following lines to your sites index file in the <head> tags:

<meta name="medium" content="medium_type" />
<link rel="image_src" href="/path_to/your_chosen_image.jpg" />

Note this won't necessarily change the images displayed on existing wall posts and FB emails as the FB bot may not have visited your page, and thus updated the cached image, since you made the changes. However, it should ensure your_chosen_image is used in future posts.

It works for me.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved