开发者

Facebook Like Button: specify graphic for this page? [duplicate]

This question already has answers here: Closed 11 years ago.

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 t开发者_如何学编程o 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜