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

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

问题描述

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



出现此警告:


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


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



当我在墙上发布文章时,会导致Facebook采摘随机图像。 / p>

任何想法为什么会这样?



编辑:我的CMS重定向图像的URL?

解决方案

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



所以我告诉我的CMS不要重定向我的图像的URL。这个工作取决于你正在使用什么样的CMS。


Check out this result of debugging an article using Facebook debugger.

It comes up with this warning:

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

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.

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

Any idea why this happens?

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

解决方案

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.

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:图像应该更大,即使它很大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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