Linkedin 分享没有选择 og:image
Linkedin sharing not picking the og:image
我正在 linkedin 上实施 post 分享,我希望 url og:image 在分享 post 时出现在 linkedin 上。但即使我已经将正确的 url 添加到 og:image 元标记。分享 post.
后,它既没有出现在分享对话中,也没有出现在 linkedin 上
这是我用来在 linkedin 上分享我的 post 的 url:
https://www.linkedin.com/shareArticle?mini=true&url=http://my_website.com:9000/post/40420&title=Test&summary=Description&source=MyWebsite
LinkedIn 有这样的分享要求(但要小心,因为 LinkedIn 网页上的引号看起来不对 - ' 与 " 匹配)
以下是必须存在的 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(宽)x 627(高)像素
- 推荐比例:1.91:1
您可以找到更多详细信息
这里:https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-shareable-on-linkedin?lang=en
我昨晚遇到了同样的问题。花了几个小时研究解决方案,但无济于事。最后我就这个问题联系了 LinkedIn,他们马上回复了。他们的开发团队实施了一个名为 "Post Inspector" 的新工具,可让您优化内容共享。从字面上看,这在短短几分钟内就奏效了。
您所要做的就是输入您的 URL,他们会完成所有繁忙的工作,即验证图像、作者、标题、描述、发布日期等属性的正确代码。他们不仅验证,他们还会告诉您要包含哪些代码、缺少什么以及如何修复它。
这是要使用的网站 Post Inspector:
我花了 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" />
我正在 linkedin 上实施 post 分享,我希望 url og:image 在分享 post 时出现在 linkedin 上。但即使我已经将正确的 url 添加到 og:image 元标记。分享 post.
后,它既没有出现在分享对话中,也没有出现在 linkedin 上这是我用来在 linkedin 上分享我的 post 的 url:
https://www.linkedin.com/shareArticle?mini=true&url=http://my_website.com:9000/post/40420&title=Test&summary=Description&source=MyWebsite
LinkedIn 有这样的分享要求(但要小心,因为 LinkedIn 网页上的引号看起来不对 - ' 与 " 匹配)
以下是必须存在的 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(宽)x 627(高)像素
- 推荐比例:1.91:1
您可以找到更多详细信息 这里:https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-shareable-on-linkedin?lang=en
我昨晚遇到了同样的问题。花了几个小时研究解决方案,但无济于事。最后我就这个问题联系了 LinkedIn,他们马上回复了。他们的开发团队实施了一个名为 "Post Inspector" 的新工具,可让您优化内容共享。从字面上看,这在短短几分钟内就奏效了。
您所要做的就是输入您的 URL,他们会完成所有繁忙的工作,即验证图像、作者、标题、描述、发布日期等属性的正确代码。他们不仅验证,他们还会告诉您要包含哪些代码、缺少什么以及如何修复它。
这是要使用的网站 Post Inspector:
我花了 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" />