我真的很难让 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" />
到目前为止我已经尝试过:
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#"
我不确定还有什么可以尝试的。有什么想法吗?
啊哈 – 刚刚尝试将其设为 JPG 而不是 PNG,LinkedIn 现在可以看到它。这有点令人震惊,但希望对其他人有帮助!
我已经尝试了所有组合。
我可以将图像的 URL 发布到 LinkedIn 的帖子检查器,它就会出现。
但仍然无法从 og 元数据中将图像显示在 LinkedIn 帖子中。我不知道为什么他们让这件事变得如此困难。