【问题标题】:How to use correctly the og meta tags for sharing GIFs on facebook如何正确使用 og 元标记在 facebook 上共享 GIF
【发布时间】:2018-02-22 16:56:18
【问题描述】:

我正在尝试在 facebook 上分享我的 link 页面,以便使用 og 元标记生成 GIF(带有圆形 GIF 符号):

            <meta content="width=device-width, initial-scale=1" name="viewport" />
            <meta property="og:url" content="https://i.giphy.com/YuXbch37iz5ao.gif" />
            <meta content="video.other" property="og:type" />
            <meta property="og:image" content="https://i.giphy.com/YuXbch37iz5ao.gif" />
            <meta content="image/gif" property="og:image:type" />
            <meta property="og:image:width" content="384" />
            <meta property="og:image:height" content="480" />
            <meta content="991618354275198" property="fb:app_id" />
            <meta content="crazygifs" property="og:site_name" />

在facebook分享链接后的结果是:

预期的结果应该是上面带有这个 GIF 符号的图像:

有些 gif 会出现这种情况,如果我尝试用这个 link 做同样的事情,它会起作用。

【问题讨论】:

  • 你好。你想通了吗?我也在尝试,但没有任何意义。它只是有时有效,而另一些则无效。我已经看到这种情况发生在 giphy
  • 不,Facebook 开发人员的帮助无济于事......

标签: html facebook gif meta-tags facebook-share


【解决方案1】:

我认为这是来自 facebook 的渲染问题。目前还没有解决方案...

【讨论】:

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