为什么Facebook调试器加薪:爬虫接受Deflate和GZIP内容编码
得到此警告:图像不可用
Provided og:image, https://t44-post-cover.s3.eu-central-1.amazonaws.com/7ou5 could not be downloaded. This can happen due to several different reasons such as your server using unsupported content-encoding. The crawler accepts deflate and gzip content encodings.
如果我将get
发送到https://t44-post-cover.s3.eu-central-1.amazonaws.com.com /7OU5
和通过convect-编码
:gzip
和content-incoding
:gzip
在Postman中,我回到了GIF,那是什么问题?
内容小于8MB,为6.23 MB。
从Graph API中调用crawler:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 1611071,
"is_transient": false,
"error_user_title": "URL Follow Failed",
"error_user_msg": "There was an error in fetching the object at URL 'https://tikex-dev.com/kubl/38fn/j1vd/2mi1', or one of the URLs specified via a redirect or the 'og:url' property including one of https://t44-post-cover.s3.eu-central-1.amazonaws.com/7ou5.",
"fbtrace_id": "A4YG8eB4cFHG9acjUaDuCKk"
}
}
Got this warning: Image Unavailable
Provided og:image, https://t44-post-cover.s3.eu-central-1.amazonaws.com/7ou5 could not be downloaded. This can happen due to several different reasons such as your server using unsupported content-encoding. The crawler accepts deflate and gzip content encodings.
If I send a GET
to https://t44-post-cover.s3.eu-central-1.amazonaws.com/7ou5
and pass Accept-Encoding
: gzip
and Content-Encoding
: gzip
in Postman, I got back the gif, what is then the problem?
Content is less than 8MB, it is 6.23 MB.
Got this error calling crawler from Graph API:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 1611071,
"is_transient": false,
"error_user_title": "URL Follow Failed",
"error_user_msg": "There was an error in fetching the object at URL 'https://tikex-dev.com/kubl/38fn/j1vd/2mi1', or one of the URLs specified via a redirect or the 'og:url' property including one of https://t44-post-cover.s3.eu-central-1.amazonaws.com/7ou5.",
"fbtrace_id": "A4YG8eB4cFHG9acjUaDuCKk"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这是因为您没有将其链接到使用OG:Image的直接文件下载链接。
I believe this is happening because you are not linking it to a direct file download link with og:image.