网页og:图像在Facebook中裁剪

1 html image opengraph

我的og:image网页和图像大小为1200像素×630像素.它在Facebook上被裁剪,我想念!?

<meta property="og:title" content="Title" />
<meta property="og:url" content="http://www.url.com/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.url.jpg" />
<meta property="og:description" content="description" />
Run Code Online (Sandbox Code Playgroud)

小智 7

我有同样的问题.您可能已多次编辑图像并使用相同的文件名保存它.图像正在缓存在Facebook服务器上,如果名称保持不变,Facebook不会刷新图像.重命名您的图像并更新您的页面html然后使用Facebooks对象调试器


Ath*_*ich 5

检查你的图片的长宽比是否为 1.91:1,这个长宽比是 facebook 推荐的,以避免裁剪。在这里查看https://developers.facebook.com/docs/opengraph/creating-custom-stories/#,祝你好运,希望有帮助!

  • 1200 x 630 是 fb 的推荐尺寸。 (4认同)