og:图片无法下载,因为它超出了允许的最大大小8Mb [英] og:image could not be downloaded because it exceeded the maximum allowed sized of 8Mb

查看:98
本文介绍了og:图片无法下载,因为它超出了允许的最大大小8Mb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

建立一个网站,需要与图像共享链接.我不知道这样做的频率...但是这次Facebook Open Graph Debugger说:

Building a website that requires sharing links with an image. Done this I don't know how often...but this time the Facebook Open Graph Debugger says:

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

og:image {image url} could not be downloaded because it exceeded the maximum allowed sized of 8Mb

但是引用的图像只有108KB?又有一次它响应我的服务器可能太慢了.但是,当我只是将图像加载到浏览器中时,它就立即存在.我现在应该在哪里看?

But the image referenced is only 108KB? One other time it responded that my server might be too slow. But when I simply load up the image in a browser it's instantly there. Where should I be looking now?

推荐答案

这是一个错误,并且在收到警告后已确认,如果重试调试或单击再次抓取",则错误消息将为没了这是一个问题,因为如果有人尝试分享该帖子,则该图片将不会显示,因为它没有被剪贴,但是随后的分享将显示该图片.

This is a bug, and it's confirmed, after getting the warning, if you retry the debug, or click on "Scrape Again", the error message will be gone. This is an issue because if someone tries to share the post, the image will not show up since it didn't get scrapped, but subsequent shares will display the image.

您可以订阅错误报告或添加一些其他注释.

You may subscribe to the Bug report or add some extra comments.

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

是的,这始于4月17日左右,我希望这能解决我们的问题.

And yeah, this started happening around April 17th, I hope this solves our issue.

Facebook团队答复了一个解决方法:

Facebook Team replied with a workaround:

问题似乎出在我们将要更新的误导性错误消息上. 同时,由于抓取工具必须至少看到一次图像才能进行渲染,因此这意味着共享内容的第一个人将看不到渲染的图像.这似乎是这里的实际问题,并且可以在这里找到解决方法: https://developers.facebook.com/docs/sharing/best-practices#precaching 更新错误消息后,我将在此处发布.

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:width og:image:height Open Graph标签似乎可以解决问题,我可以发誓之前和之前并没有做太多,但是这次看起来还不错.

Adding the og:image:width and og:image:height Open Graph tags seems to do the trick, I can swear I tried that before and didn't do much, but this time it seems to work just fine.

这篇关于og:图片无法下载,因为它超出了允许的最大大小8Mb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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