Facebook linter报告og:图像太小,当它比它选择的图像大时 [英] Facebook linter reports og:image is too small, when it is larger than the image it choose instead

查看:155
本文介绍了Facebook linter报告og:图像太小,当它比它选择的图像大时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:


  • linter报告指定的og:image太小。图像是628x464。

  • linter而是从页面中选择一个380x214的随机图像,小于
    og:image!

linter告诉我的内容:

What the linter shows me:

http://developers.facebook.com/tools/debug/og/object?q=futuremark.com

背景:

我们很高兴使用130x110 og:过去9个月没有问题的图像。我注意到在过去的几周里,页面不再共享正确的图像。使用linter似乎Facebook最近决定og:图像应该至少200x200。所以我一直在用更大的例子取代我们的og:图像,但是linter仍然说它们太小了。

We have been happily using 130x110 og:images without problems for the last 9 months. I noticed in the last couple of weeks that pages were no longer sharing the correct image. Using the linter it seems that Facebook recently decided og:images should be at least 200x200. So I have been replacing our og:images with larger examples but the linter still says they are too small.

我有什么想法可以解决这个问题,还是Facebook的问题?谢谢。

Any ideas how I can fix this, or is it a Facebook problem? Thanks.

推荐答案

现在我猜Facebook没有找到高度和宽度的标签,并认为它们为空。就我而言,下一个标签解决了这个问题:

Now I guess that Facebook does not find tags for height and width and considers them null. In my case, next tags fixed this issue:

<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="855" />

这篇关于Facebook linter报告og:图像太小,当它比它选择的图像大时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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