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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.