为什么我的 Open Graph 图像没有显示(但它占用 space),即使 URL 调试器检测到它?
Why is my Open Graph image not showing (but it takes up space) even though the URL debugger detects it?
我这样设置 og:image
:
<meta property="og:image" content="https://example.com/my-og-image.jpg" />
它的维度是 1200x630
,就像 Open Graph 文档推荐的那样。但是,当我在 Facebook's URL Debugger 中预览时,它不显示图像。它占用了预期的 space,但它只是一个白色表面。
有时您还需要指定要显示的图像的尺寸:
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
无论如何这是一个很好的做法,因为现在 Facebook 不必动态计算它。
我这样设置 og:image
:
<meta property="og:image" content="https://example.com/my-og-image.jpg" />
它的维度是 1200x630
,就像 Open Graph 文档推荐的那样。但是,当我在 Facebook's URL Debugger 中预览时,它不显示图像。它占用了预期的 space,但它只是一个白色表面。
有时您还需要指定要显示的图像的尺寸:
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
无论如何这是一个很好的做法,因为现在 Facebook 不必动态计算它。