开发者

How to control the picture that shows in Facebook when somebody likes your blog post? [duplicate]

开发者 https://www.devze.com 2023-03-07 03:40 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How does Facebook Sharer select Images?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How does Facebook Sharer select Images?

well everything is in the question. I am talki开发者_如何学Pythonng about a blog or any website that is outside of Facebook: for example www.example.com/blogpost1

For now, Facebook chooses the picture from the RSS feed, which makes not much sense, well I can't find any reason why it would take this picture instead of another one. The code of this picture is this one: img src="xxxxx.com/wp-content/themes/xxx/images/logo_flux. jpg"

I'prefer it would take my logo.jpg representing the website.

Thanks!


Have a look at the Open Graph Meta Tags.

If you use Open Graph tags, the following six are required:

og:title - The title of the entity.
og:type - The type of entity. You must select a type from the list of Open Graph types.
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.
og:url - The canonical, permanent URL of the page representing the entity. When you use Open Graph tags, the Like button posts a link to the og:url instead of the URL in the Like button code.
og:site_name - A human-readable name for your site, e.g., "IMDb".
fb:admins or fb:app_id - A comma-separated list of either the Facebook IDs of page administrators or a Facebook Platform application ID. At a minimum, include only your own Facebook ID.
0

精彩评论

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