Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I posted a few days ago how it was possible to tell FB to fetch specific images in my site for status updates.

I still need to tell it what not to fetch, since many of these pictures wouldn't represent the website very well. I'd really rather only show the site logo.

share|improve this question
1  
Great question! I often see when a site is shared that Facebook picks a banner ad as its image even though they come from a completely different domain! I'd imagine this would be very common and easy for them to avoid but the next best thing would be to find the answer to your question :) – Itai Mar 3 at 21:26
If you use the og:url tag, you can specify which image is default, but the others will still show up as choices. I'm not sure of a way to exclude images, unless you make them background images. – Dallas Mar 27 at 4:59

1 Answer

One solution would be to cloak your page when the facebook scraper comes along. It uses the user agent.

facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)

For that user agent, serve a version of the page with the images removed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.