Facebook将图形打开成一个正方形 [英] Facebook crops open graph image in to a square
问题描述
我正在尝试向Facebook创建一个自定义的开放图表,但是让 og:image
正确显示有些麻烦。我使用的是1200 * 630大小的图像,如这里和这里,但在我的时间线上它得到从图像的左边缘裁剪成一个正方形。它也在故事预览中显示为一个正方形,虽然这次从中心裁剪出来。
I'm trying to create a custom open graph story to Facebook but I'm having some trouble getting the og:image
to show properly. I'm using a 1200*630 sized image as recommended here and here but on my timeline it gets cropped in to a square from the left edge of the image. It also shows as a square in the story preview though this time it's cropped from the center.
如何让图像以正确的长宽比和大小显示?是否只是测试环境,或者我需要在我的服务器端添加一些东西?我已经尝试使用元标记 width
和 height
,没有成功。
How can I get the image to show in the correct aspect ratio and size? Is it just the test environment to blame or do I need to add something on my server side? I've already tried to use the meta tags width
and height
with no success.
目前标签如下所示:
< meta property =og :imagecontent =http://www.linktomyimage/1200x630pixels.png/>
推荐答案
打开图形故事图像以正方形格式显示。
的图像比例应为600 x 600像素。
Open Graph Stories Images appear in a square format. Image ratios for these apps should be 600 x 600 px.
这篇关于Facebook将图形打开成一个正方形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!