og:image打开图形警告图像大小 [英] og:image Open Graph Warnings image size

查看:321
本文介绍了og:image打开图形警告图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查我的网址,因为Facebook不使用我在og上设置的图像:image



url fb check



我的形象是:639x649px 486kb
但是fb使用这张照片:300x443px 97kb



警告说:


og:image应该更大:提供og:image不够大。请
使用至少200x200,最好是1500x1500的图像。
(最大图像大小为5MB)Image
'url from image,size:300x443px 97kb'
将被替代。


但是当我尝试创建一个1500x1500像素的图像时,上传到服务器,刷新并重新检查顶部的链接,结果是一样的。

解决方案

我对Facebook的经验使我怀疑电脑是确定性的机器:)



有时它会接受任何图像大小(200到1500像素之间),有时会抱怨图像太小( og:图像应该更大),即使图像平方大于最小尺寸(例如400x400像素)。
我有一种情况,同样的链接显示在linter和FB状态字段中的所有3 og:图像,然后突然2周后停止工作,并开始显示只有一个图像,同时尝试在FB状态字段(linter still显示所有3张图像),反之亦然。
有时候,FB似乎在不同的域中有问题(例如,页面位于www.example.com和og:www.picdumpexamplesite.com上的图片),有时候不介意...



p IM IM HO heavily heavily eg,eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg eg大小300x300px

- 在同一个服务器上托管它们(相同域名)

- 使用jpg

- 避免文件中的任何奇怪字符(我只使用字母和数字)

- 祈祷上述某些作品:)


I check my url because facebook don't use the image that I set on og:image

url fb check

My image is: 639x649px 486kb But fb use this picture: 300x443px 97kb

The warning said:

og:image should be larger: Provided og:image is not big enough. Please use an image that's at least 200x200 and preferably 1500x1500. (Maximum image size is 5MB.) Image 'url from image, size: 300x443px 97kb' will be used instead.

But when I try to create an image 1500x1500px, upload to server, refresh, and check again the link on top, the results are the same.

解决方案

My experience with Facebook made me doubt that computers are deterministic machines :)

Sometimes it will accept image of any size (between 200 and 1500px), sometimes complain that image is too small (og:image should be larger) even if image is squared and bigger than minimum size (e.g. 400x400px). I had situations where the same link showed all 3 og:images in linter and in FB status field, then suddenly 2 weeks later stopped working and started showing only one image while trying to share it in FB status field (linter still showed all 3 images), and vice versa. Sometimes FB seems to have problems with different domains (e.g. page is on www.example.com and og:image on www.picdumpexamplesite.com), sometimes it doesn't mind...

IMHO it's heavily broken, and the best you can do is:
- make images squared, rounded to "hundreds", e.g. size 300x300px
- host them on the same server (same domain name)
- use jpg
- avoid any "strange" chars in filename (I use only letters and numbers)
- pray that something of the above works :)

这篇关于og:image打开图形警告图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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