meta 属性 图片在 linkedin 中不起作用

meta property image not working in linkedin

meta 属性 用于图像在 Facebook 中工作正常但在 LinkedIn 中不工作 我正在使用

    <meta property="og:image" content='image url' />

我试过了

<meta property="og:image:width" content="180" />
<meta property="og:image:height" content="110" />

但仍然无法在 Linkedin 中工作

尝试以下操作:

   <meta prefix="og: http://ogp.me/ns#" property="og:title" content="{Your content}" />
    <meta prefix="og: http://ogp.me/ns#" property="og:type" content="{Your content}" />
    <meta prefix="og: http://ogp.me/ns#" property="og:image" content="{Your content}" />
    <meta prefix="og: http://ogp.me/ns#" property="og:url" content="{Your content}" />

例如:

<meta prefix="og: http://ogp.me/ns#" property="og:image" content="http://image.com/myimage.png" />

或者看看Linkekedin提供的代码:

<html prefix="og: http://ogp.me/ns#">
<head>
  <meta property="og:image" content="http://example.com/foo.jpg" />
</head>
<body>

For the highest quality presentation on LinkedIn.com, the image referenced in og:image should be at least 80 x 150px to prevent it from being artificially stretched to fit the layout.