Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is it possible to add an image to a html page that only shows up when sharing page on Facebook/G+? The image should not be visible in the html page since it contains a Flash game, but I would like it to show up when you post a link to the url on social sites.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

yes you can. Just add
<meta property="og:image" content="http://www.domain.com/shareimage.jpg"/>
at the top of the html page that you want to share. The image path that you use here will come up in the facebook.
Refer Open Graph

share|improve this answer
    
Thanks. It works like a charm on Google Plus, but not on Facebook. The title appears, but not the description or the image. –  Mattias Dec 3 '11 at 6:27
    
Just found this: developers.facebook.com/tools/debug –  Mattias Dec 3 '11 at 6:28
    
For the description and title you need to add : "og:description" and "og:title" meta tags similar to "og:image". Please refer the link in my answer. –  Jigar Tank Dec 3 '11 at 6:45

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.