LinkedIn 无法识别 og:image

问题描述 投票:0回答:2

我真的很难让 LinkedIn 识别 og:image。我的 og 标签如下所示:

<meta property="og:type" content="website" />
<meta property="og:title" content="My title here" />
<meta property="og:url" content="https://www.example.com/some-page" />
<meta property="og:description" content="Description here" />
<meta property="og:image" content="https://www.example.com/og-image.png" />

到目前为止我已经尝试过:

  • 检查 og:url 是否与当前页面匹配
  • 检查图像是否存在
  • prefixprefix="og: http://ogp.me/ns#"
    添加到我的 HTML 标签
  • 将该前缀更改为
    prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#"
  • 检查网站的 SSL 设置(按照在 LinkedIn 上与 og 分享
  • 确保我的图像至少为 1200x672px
  • 确保我的图像低于 5MB

我不确定还有什么可以尝试的。有什么想法吗?

linkedin-api facebook-opengraph
2个回答
3
投票

啊哈 – 刚刚尝试将其设为 JPG 而不是 PNG,LinkedIn 现在可以看到它。这有点令人震惊,但希望对其他人有帮助!


0
投票

我已经尝试了所有组合。

  • 1200x672(以及更大,有一个网站说 1200x627)
  • JPG
  • PNG
  • 完整网址
  • 相对网址
  • 将页面上的图像放在隐藏的 div 中
  • 文件小于1mb

我可以将图像的 URL 发布到 LinkedIn 的帖子检查器,它就会出现。

但仍然无法从 og 元数据中将图像显示在 LinkedIn 帖子中。我不知道为什么他们让这件事变得如此困难。

© www.soinside.com 2019 - 2024. All rights reserved.