简体   繁体   English

在Facebook上分享显示不正确的图片链接

[英]Share on Facebook shows incorrect image link

I am using Share on Facebook button with www.facebook.com/sharer.php?etc URI. 我正在使用带有www.facebook.com/sharer.php?etc URI的“在Facebook上共享”按钮。 However, I have some problems. 但是,我有一些问题。 Here's what I want to do. 这就是我想要做的。

  1. My site is kind of like a blog in which each blog has a lot of photos 我的网站有点像一个博客,其中每个博客都有很多照片
  2. So when people click on Share on Facebook button, I want the users to be able to choose which photo to use as Facebook thumbnail. 因此,当人们单击“在Facebook上共享”按钮时,我希望用户能够选择要用作Facebook缩略图的照片。 I'm aware this is the default method of Facebook Share which is to scan the whole page for images. 我知道这是Facebook Share的默认方法,即扫描整个页面以查找图像。

However, my problem is the thumbnails won't show. 但是,我的问题是缩略图无法显示。 I viewed the source to find that the URI to the images is incorrect. 我查看了源代码,发现图像的URI不正确。 For example : 例如 :

**SHOULD BE :** http://www.mysite.com/web/images/photo.jpg

**ACTUAL    :** http://www.mysite.com/images/photo.jpg

So in short, facebook fails to read the "web" in the URI. 简而言之,facebook无法读取URI中的“网络”。 That's why the thumbnail won't show. 这就是为什么缩略图不会显示的原因。 Any idea how to fix this? 任何想法如何解决这个问题?

The link to the site : 该网站的链接:

http://www.biiiz.com/nya/blog.php?id=1

It's actually just a temporary hosting. 它实际上只是一个临时主机。 'm sure the share on FB will work fine when I move the files into their own hosting, but I'm just curious about this. 我敢肯定,当我将文件移到它们自己的主机中时,FB上的共享将正常工作,但是我对此很好奇。

You can get facebook to clear their cache and re-download your meta data by entering your URL into their linter: 您可以通过在他们的短毛绒中输入URL来使facebook清除其缓存并重新下载元数据:

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

考虑文件

`<link rel="image_src" href="thumbnail_image" / >`

FB caches for... like... ever. FB高速缓存... You can't clear it manually, so just wait until their private crawler hits your site again. 您无法手动清除它,因此请等到他们的私人抓取工具再次访问您的网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM