LinkedIn无法选取指定的og:image图片

6

演示网址 - http://maz.node1357.speedyrails.net/webreader/803

该页面具有开放图谱标签,其中开放图谱图像通过HTTP从S3提供,其宽度为240像素,高度为320像素。

  <meta property="og:url" content="http://maz.node1357.speedyrails.net/webreader/803">
  <meta property="og:title" content="sharetest_4">
  <meta property="og:site_name" content="MAZ">
  <meta property="og:description" content="test pdf 10 page">
  <meta property="og:image" content="http://s3.amazonaws.com/maz_staging2/staging2env1/issues/00022/webreader/thumbs/staging2env1_00022_thumb_0001@2x.gif" />

为什么此处会出现“图片预览切换器”?第一张图片似乎是由og:image标签指定的,但第二张图片似乎从未加载,尽管页面中有许多比Linkedin指定的更大的图片。
我检查了一些其他网站。来自Techcrunch的这篇文章的Linkedin分享没有切换器-点击这里 但是来自这篇文章的分享有-点击这里 这两个URL都有宽度为680px和高度> 300px的图像。有关从Linkedin中的开放图形标签提取图像的任何指南吗?

2
有任何答案吗?我也遇到了同样的问题... - fandang
1个回答

1
根据LinkedIn开发者参考文档,您需要在html标签中使用Open Graph命名空间。
<html prefix="og: http://ogp.me/ns#">
<head>
  <meta property="og:title" content="My Shared Article Title" />
  <meta property="og:description" content="Description of shared article" />
  <meta property="og:url" content="http://example.com/my_article.html" />
  <meta property="og:image" content="http://example.com/foo.jpg" />
</head>
<body></body>
</html>

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接