-1

Possible Duplicate:
How does Facebook Sharer select Images?

I'm using the Facebook "like" button with the Javascript API: http://developers.facebook.com/docs/reference/plugins/like

When someone clicks "like" and adds a comment, Facebook posts it to their wall with a little thumbnail graphic. That graphic appears to be specified in the OpenGraph meta tags that I had to add to the site (which are detailed near the bottom of the page I linked to above -- see og:url). And that graphic appears to be site-wide for my domain.

My question: instead of having one general graphic for all my "liked" pages on my site, can I specify a graphic for each individual page, that will be carried over to Facebook when the user "like"s that page?

Thanks-- E

Community
  • 1
  • 1
Eric
  • 5,104
  • 10
  • 41
  • 70

1 Answers1

1

of course, just remember the graphic you want to share should go in the og:image meta tag:

<meta property="og:image" content="http://domain.com/path/to/image.jpg"/> 

Just make sure you satisfy the conditions:

og:image - The URL to an image that represents the entity. Images must be at least 50 pixels by 50 pixels. Square images work best, but you are allowed to use images up to three times as wide as they are tall.

ifaour
  • 38,035
  • 12
  • 72
  • 79
  • I have that image tag already in the header since it's part of the OpenGraph meta info for the site. Are you suggesting that I override that for each page of my site? I'll try it, though it seems to fly in the face of the "spirit" of having these og: tags on every page. – Eric Jan 26 '11 at 21:16
  • @Eric: If you want different images on different pages then yes, you need different image meta..at the end this is what the meta tags are for! – ifaour Jan 26 '11 at 21:38