在 Facebook 上实现共享时如何将特定图像显示为缩略图? [英] How to show particular image as thumbnail while implementing share on 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-缩略图图像/
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屋!