FB 调试器说我的 og:image 应该更大,即使它很大 [英] FB debugger says that my og:image should be larger, even though it is large

查看:15
本文介绍了FB 调试器说我的 og:image 应该更大,即使它很大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看使用 Facebook 调试器调试文章的结果.

它提出了这个警告:

og:图像应该更大.提供 og:image 不够大.请使用至少 200x200,最好是 1500x1500 的图片.

og:image should be larger. Provided og:image is not big enough. Please use an image that's at least 200x200 and preferably 1500x1500.

但是,如果您打开下方og:image"字段中显示的图像,您可以清楚地看到图像足够大 - 700x350 像素.

But if you open the image displayed in the "og:image"-field below, you can clearly see that the image is big enough - 700x350 px.

这会导致 Facebook 在我的墙上发布文章时随机选择图片.

This results in Facebook picking random images when I'm publishing articles on my wall.

知道为什么会这样吗?

问题是否是由我的 CMS 重定向图像的 url 引起的?

Could the problem be caused by my CMS redirecting the url of the image?

推荐答案

这是由于我的 CMS 系统重定向了图像的 URL.所以正确的图片显示在 Facebook 调试器中,但 FB 可能在重定向发生之前寻找图片大小,然后它没有大小.

This was due to my CMS system redirecting the URL of the image. So the correct image showed up in the Facebook debugger, but FB was probably looking for the image size before the redirection took place, and then it had no size yet.

所以我告诉我的 CMS 不要重定向我的图像的 URL.其工作原理取决于您使用的 CMS 类型.

So I told my CMS not to redirect the URL of my images. How that works depends on what kind of CMS you are using.

这篇关于FB 调试器说我的 og:image 应该更大,即使它很大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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