【问题标题】:Sharing on Linkedin does not always pull og:image在 LinkedIn 上分享并不总是拉 og:image
【发布时间】:2017-08-02 12:53:21
【问题描述】:

在Linkedin上分享文章时,有时og:image标签中指定的图片会显示,有时不显示。

这是一个有效的例子:https://newsroom.porsche.com/en/history/porsche-history-litera-tour-erfurt-weimar-944-turbo-cabriolet-13865.html

还有一个不起作用的例子:https://newsroom.porsche.com/en/company/porsche-half-year-2017-increase-operating-result-revenue-deliveries-employees-14005.html

here 所述,所有相关的 og:tags 都存在(除了 html 标记处的那个,但如上所示,它不是必需的)。

我发现了什么:在工作示例中,图像存储在 Amazon S3 中,而在非工作示例中直接存储在服务器上。很抱歉没有直接发布图片的链接,但我的声誉确实允许每个帖子只有两个链接。

除此之外,两个链接都有效,两个图像大小相同,服务器没有任何地理限制。两个页面都使用相同的模板,所以我认为它也不能是标记。

【问题讨论】:

    标签: html linkedin facebook-opengraph


    【解决方案1】:

    我猜是Content-type: image/jpeg 标头在对存储在服务器上的图像的响应中丢失。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-21
      • 2020-07-06
      • 1970-01-01
      • 2014-01-24
      • 2015-06-28
      相关资源
      最近更新 更多