【问题标题】:Image not loaded for page with og tags when first time pasting to facebook首次粘贴到 Facebook 时,未为带有 og 标签的页面加载图像
【发布时间】:2014-10-21 10:12:20
【问题描述】:

我有页面https://pixit.im/AAC 它包含视频并具有正确的 og 标签。 OG 调试器说一切都很好,并显示来自 og:image 的图像。

但是,当我第一次将此链接粘贴到 facebook 时,我在预览中看不到图像,只有 og:title 和 og:description 形式的文本。

如果我在 FB OG 调试器中打开 url,或者稍后粘贴,或者使用此链接发布记录,图像就会出现。

但是,事实是,每次我第一次将一些链接从我的资源 (https://pixit.im/A**) 粘贴到 FB 共享对话框时,它都不会加载图像以供预览。问题是 - 为什么?

【问题讨论】:

    标签: facebook facebook-opengraph


    【解决方案1】:

    原来答案是同时设置og:image:width 和og:image:height。

    另请参阅: Facebook Open Graph No Image First Time

    (在我自己的测试中,我发现设置og:image:width和og:image:height就足够了。设置og:image:type是不必要的。)

    【讨论】:

      猜你喜欢
      • 2014-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 2020-07-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多