【问题标题】:og:image doesn't appear on Facebook when link is sharedog:共享链接时,图像不会出现在 Facebook 上
【发布时间】:2016-04-23 23:21:39
【问题描述】:

当我分享指向我的网页的链接时,我的og:image 没有出现在 Facebook 上,我已经在 Stack Overflow 上研究了类似问题的各种答案,但尚未找到解决方案。以下是我目前所读到的内容:

1x1 px og image facebook

og:image doesn't show

Facebook don't display correct thumbnail

在我撰写此问题时,还查看了其他一些可能的答案。以下是 Facebook 调试器返回的关于我的 HTML 的内容:

</script><meta property="fb:app_id" content="1754277741470441">
<meta property="og:image" content="http://breadandcircuses.comicgenesis.com/images/spock-1.png">
<meta property="og:description" content="Bread and Circus comics for all your social and political commentary needs.">
<meta property="og:url" content="http://breadandcircuses.comicgenesis.com/">
<meta property="og:title" content="Bread and Circuses">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
</head>

所有其他元 og 标记似乎工作正常,我的图像大小未针对在 Facebook 上显示进行优化,但它是 200x354,调试器返回它是 1x1 图像。

【问题讨论】:

  • http://breadandcircuses.comicgenesis.com/images/spock-1.png 已经在我的浏览器中为我返回了一个 1x1 像素的图像。
  • 这就是问题所在,托管图像绝对不是 1x1。我将它作为常规图像(不是元数据)添加到页面底部以查看是否有所不同,当我共享链接和抓取数据时仍然显示为空白,但是如果您单击空白抓取数据图像,现在它会将您带到适当大小的可见图像。
  • 这里我不是在谈论 FB 刮板——即使我直接在浏览器中调用该图像 URL,我也只能得到一个 1x1 像素的图像。因此,您需要找出是什么让您的服务器以这种方式响应该请求。

标签: facebook facebook-graph-api tags meta


【解决方案1】:

我在 facebook help 上的一个类似问题中找到了这个调试工具。

https://www.facebook.com/help/community/question/?id=10200708365214182

建议是使用 facebook 调试链接工具

https://developers.facebook.com/tools/debug/

它提供了一个警告列表。我刚刚将一个网站从一家托管公司更改为另一家托管公司,并且可能还有一个传播期让所有搜索提供商保持一致! :s

【讨论】:

  • 我的 og:image 至少不是 200x200
猜你喜欢
  • 2015-12-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-28
  • 1970-01-01
  • 2014-03-04
  • 1970-01-01
相关资源
最近更新 更多