Wednesday, January 9, 2013

Website image is not shown in Facebook share

Error

Your website image is not shown when sharing on Facebook

Solution

Don't retry on facebook news feed since it is cached

#1

Try to invalidate the cache, check my previous article

http://karim-ouda.blogspot.com/2011/10/how-to-refresh-url-entries-in-facebook.html

#2

Add facebook meta-tags in your page "head", and try again

<meta property="og:url" content="YOUR_STUFF" />
<meta property="og:site_name" content="YOUR_STUFF" />
<meta property="og:type" content="website" />
<meta property="og:title" content="YOUR_STUFF" />
<meta property="og:description" content="YOUR_STUFF" />
<meta property="og:image" content="THE_IMAGE_TO_BE_SHOWN">

NOTE: facebook has some requirements in images, first make sure it is more than 200x200 in dimension

#3

If all the above didn't work, you will need to do some debugging

Go to this link ( facebook debugger) and past your site link, and check the errors, warning, and all the great information of how facebook sees your webiste

https://developers.facebook.com/tools/debug

#4

Also check server logs

"HEAD /images/close-icon.png HTTP/1.1" 206 337 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"

Note: HTTP 206 response code is ok, it is part of multiple partial downloads of the image




No comments:

Post a Comment