在Facebook上实现共享时如何显示特定图像作为缩略图? [英] How to show particular image as thumbnail while implementing share on Facebook?

查看:133
本文介绍了在Facebook上实现共享时如何显示特定图像作为缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现共享这个方法。我使用的代码如下

I am trying to implement share this method. I am using the code as follows

http://www.facebook.com/share.php?u=my_website_url

现在Facebook显示左侧显示一些缩略图。这些图像从我的网站挑选。如何选择一个特定的图像缩略图或至少停止显示缩略图?

Now when Facebook is showing it showing some thumbnails at left side. These images are picked from my website. How can I pick a particular image as thumbnail or at least stop it showing thumbnail?

您可以使用我的

You can check it with my blog address.

推荐答案

这篇博文似乎有你的答案:
http://blog.capstrat.com/articles/facebook-share-thumbnail-image/

This blog post seems to have your answer: http://blog.capstrat.com/articles/facebook-share-thumbnail-image/

具体来说,使用以下标签:

Specifically, use a tag like the following:

<link rel="image_src" 
      type="image/jpeg" 
      href="http://www.domain.com/path/icon-facebook.gif" />

图像的名称必须与示例中相同。

The name of the image must be the same as in the example.

点击确保预览工作

注意:标签可以是正确的,但Facebook只会按照他们的文档每24小时刮擦一次。使用Facebook Lint页面将图像转换成Facebook。

Note: Tags can be correct but Facebook only scrapes every 24 hours, according to their documentation. Use the Facebook Lint page to get the image into Facebook.

http://developers.facebook.com/tools/lint/

这篇关于在Facebook上实现共享时如何显示特定图像作为缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆