提供og:图像不够大在Facebook linter [英] Provided og:image is not big enough in Facebook linter

查看:111
本文介绍了提供og:图像不够大在Facebook linter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上正确设置了 og:image ,facebook linter看到它(facebook调试器)但是,它表示图像应至少为200x200,不是这样,我的形象是250x250 图片

I properly set og:image on my website, the facebook linter sees it (facebook debugger) however, it says the image should be at least 200x200, which it is not the case, my image is 250x250 image.

可能导致这个问题?这可能与Cloudfront有任何关系吗?

What could be causing the issue? Could this have anything to do with Cloudfront?

Edit: I got around it by switching from this image to another image which is a 
jpg image, but still I couldn't find the cause for the problem since the image
looks fine.


推荐答案

这是发生在我身上。我只使用meta og:image标签。我在头部添加了以下内容

This was happening to me. I was only using the meta og:image tag. I added the following in the head

<link rel="image_src" type="image/jpeg" href="img_path" />

它修复了我的问题。

这篇关于提供og:图像不够大在Facebook linter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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