facebook-opengraph - :image could not be downloaded because it exceeded the maximum allowed sized of 8Mb

标签 facebook-opengraph

构建一个需要共享图像链接的网站。我不知道多久完成一次...但是这次 Facebook Open Graph 调试器说:

og:image {image url} 无法下载,因为它超出了允许的最大大小 8Mb

但是引用的图片只有108KB?还有一次,它回复说我的服务器可能太慢了。但当我只需在浏览器中加载图像时,它就会立即出现。我现在应该在哪里寻找?

最佳答案

这是一个错误,并且已经确认,收到警告后,如果您重试调试,或者单击“再次抓取”,错误消息将会消失。这是一个问题,因为如果有人尝试分享该帖子,该图像将不会显示,因为它没有被废弃,但后续分享将显示该图像。

您可以订阅错误报告或添加一些额外的评论。

https://developers.facebook.com/bugs/1626463061012181/

是的,这种情况从 4 月 17 日左右开始发生,我希望这能解决我们的问题。

编辑:

Facebook 团队回复了解决方法:

It seems like the issue is with the misleading error message which we will be updating. In the meantime, since the crawler has to see an image at least once before it can be rendered, it means that the first person who shares a piece of content won't see a rendered image. This seems to be the actual issue here and the workaround is available here: https://developers.facebook.com/docs/sharing/best-practices#precaching I will post here once we update the error message.

添加 og:image:widthog:image:height Open Graph 标签 似乎可以解决问题,我可以发誓我以前尝试过,但没有做太多事情,但这次似乎效果很好。

关于facebook-opengraph - :image could not be downloaded because it exceeded the maximum allowed sized of 8Mb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36608780/

相关文章:

html - Open Graph + Twitter Cards + HTML5 = 不兼容?

facebook-graph-api - 使用Open Graph API,我可以看到用户何时在Spotify中将其添加到播放列表或星标轨道吗?

facebook - FQL 获取用户的开放图 video.watches 事件

facebook-opengraph - 使Facebook搜寻器忽略规范链接

facebook-opengraph - 尽管 og :image tag on page Pinterest 图片是空白的

facebook-graph-api - Facebook(Instagram)图形 API 不返回 instagram_business_account

facebook - 非应用程序用户的图片在 Facebook Open Graph v2.0 中是否仍然可用?

Facebook 描述不适用于 Recommend

javascript - 如何在使用 Nginx 服务器发送每个请求之前修改 build 文件夹中的 index.html 文件?

html - 什么是最佳 og :image size for sharing a link in Whatsapp (Slow image rendering)