LinkedIn共享不选择OG:Image



我正在LinkedIn上实现帖子共享,我想在共享帖子时出现在LinkedIn上的url og:映像。但是,即使我已经将正确的URL添加到OG:Image Meta标签。分享帖子后,它没有在LinkedIn上的共享对话中出现。

这是我用来分享我在LinkedIn上的帖子的URL:

https://www.linkedin.com/shareArticle?mini=true&url=http://my_website.com:9000/post/40420&title=Test&summary=Description&source=MyWebsite

我昨晚遇到了同样的问题。花了几个小时研究解决方案,但无济于事。最后,我就这个问题联系了LinkedIn,他们立即做出了回应。他们的开发团队已经实施了一个名为" Post Inspector"的新工具,该工具使您可以优化内容共享。从字面上看,仅几分钟后,这实际上就起作用了。

您要做的就是输入URL,他们完成了所有忙碌的工作,即验证正确的属性代码,例如图像,作者,标题,描述,出版日期等。它们不仅要验证,而且还告诉您包括什么代码,缺少的内容以及如何修复它。

这是使用邮政检查员的网站:

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

LinkedIn具有共享要求(但要小心,因为引号在LinkedIn网页上看起来不正确 - '与&quot'(

以下是OG:必须存在的标签及其正确格式:

  • <meta property='og:title' content='Title of the article"/>
  • <meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
  • <meta property='og:description' content='Description that will show in the preview"/>
  • <meta property='og:url' content='//www.example.com/URL of the article" />

这是LinkedIn共享模块的图像要求:

  • 最大文件大小:5 MB
  • 最小图像尺寸:1200(w(x 627(h(像素
  • 建议比率:1.91:1

您可以找到更多详细信息这里:https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-narable-narable-on-linkedin?lang= en

我花了1个小时才能弄清楚。

将图像标签放在 <head>之后。

<head>
<meta
    name="image"
    property="og:image"
    content="https://2d-array-rotation.com/static/images/2d_array_rotation.jpg"
>

有时软件工程师会使事情复杂化。

<meta property='og:title' content='Title of the article"/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
<meta property='og:description' content='Description that will show in the preview"/>
<meta property='og:url' content='//www.example.com/URL of the article" />

最新更新