1

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.

2

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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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