缩略图未显示在 LinkedIn 分享帖子中

Thumbnails not showing up on LinkedIn share posts

我们建立了一个新的迷你网站,提供广泛的社交分享,包括 LinkedIn。大量 OpenGraph 标记,有效。我们选择了使用 og:image 元 属性 共享时要显示的特定图像。

这些图片在 Facebook 和 Pinterest 上运行良好,但在 LinkedIn 上运行不正常。这是 OG 图片标记:

<meta property="og:image" content="https://img.mshanken.com/d/wso/Articles/2016/ST_TheBreakers070516_1600.jpg">

但是如果您单击我们在页面底部设置的 LinkedIn 图标,您最终会进入一个看起来像这样的共享页面,该页面不显示图像:

更奇怪的是,如果您检查那个共享预览,图像在源代码中:

<div class="image-thumbs-container">
<img src="https://media.licdn.com/media-proxy/ext?w=180&amp;h=110&amp;f=c&amp;hash=q0uvWygJS2HJrhZZ2qZGdYu2Tig%3D&amp;ora=1%2CaFBCTXdkRmpGL2lvQUFBPQ%2CxAVta5g-0R6jnhxUzw8p4aCKqEH-50hKCoaTFXP-RFTovozTPCKqZsXfeLS-xzl5HHRU4kZnLrT9AnPhFZO5KoyAfNpxi4m_ZMc" width="130" alt="Preview of the share image" data-orig-url="https://img.mshanken.com/d/wso/Articles/2016/ST_TheBreakers070516_1600.jpg" data-width="" data-height="" data-size="" data-position="1" class="active">    
</div>

我们需要做什么才能让该图片显示在 LinkedIn 分享中?

它可能是几件事:

  1. 尺寸1600x900,大小220kb在LinkedIn的要求之内。但是,您的相位是 16:9 而不是 4:1 / 1:4.
  • Max file size: 1 MB
  • Minimum image dimensions: 80 x 150 pixels
  • Recommended aspect ratio: 4:1 or 1:4

Making Your Website Shareable on LinkedIn


  1. 您的图片 URI 是 https,可能是他们无法检索您的图片。您是否尝试过使用 http 图片?

Note: If the image meets the requirements, but it still does not appear in updates on LinkedIn, your website may be blocking us from pulling the image or the image may be located on a protected directory or website.

Making Your Website Shareable on LinkedIn


  1. 图片是否与 LinkedIn 第一次抓取您的页面图片时发生变化?他们会缓存 ~7 天。

The first time that LinkedIn's crawlers visit a webpage when asked to share content via a URL, the data it finds (Open Graph values or our own analysis) will be cached for a period of approximately 7 days.

This means that if you subsequently change the article's description, upload a new image, fix a typo in the title, etc., you will not see the change represented during any subsequent attempts to share the page until the cache has expired and the crawler is forced to revisit the page to retrieve fresh content.

Shared Content Caching

来自未来的插话 - 我今天遇到了这个问题,因为我们的网站更新没有显示正确的图像。在我的例子中,解决方案很简单:尝试像这样发布 link:https://url.com/?jhskjsh 它强制 linked 再次获取元标记,然后显示我的图像,而不是以前有的灰色方块。

我昨晚遇到了同样的问题。花了几个小时研究解决方案。最后我就这个问题联系了 LinkedIn,他们马上回复了。他们的开发团队实施了一个名为 "Post Inspector" 的新工具,可让您优化内容共享。从字面上看,这在短短几分钟内就奏效了。

您所要做的就是输入您的 URL,他们会完成所有繁忙的工作,即验证图像、作者、标题、描述、发布日期等属性的正确代码。他们不仅核实,他们还会告诉您要包​​括什么以及缺少什么。

这是要使用的网站 Post 检查员:

https://www.linkedin.com/post-inspector/