LinkedIn共享在共享时未获取缩略图?

问题描述 投票:0回答:2

我正在尝试在drupal中共享页面的链接到。在该页面中有一个图像,但在共享链接到的页面时仍缺少缩略图。这是我链接的共享代码。

<a href='http://www.linkedin.com/shareArticle?mini=true&url=<?php print $tiny_bit_url;?>&amp;title=<?php print $data->node_title;?>&summary=<?php print $summary; ?>'>
<img src="linkedin-icon.png"/>
</a>

我缺少该图像作为缩略图从该页面共享到链接的共享,这是什么?

提前感谢。

html drupal drupal-7 linkedin
2个回答
3
投票

LinkedIn的搜寻器将转到$tiny_bit_url的值,并尝试基于页面中是否存在OpenGraph标签来确定要显示的图像,否则,它自己的逻辑将尝试在屏幕上选择最相关的图像要展示的页面。

有关如何以最佳格式设置页面内容以进行共享的其他文档,请参见https://developer.linkedin.com/docs/share-on-linkedin#opengraph


0
投票

例如,使用页面上的og:标签来指示您希望LinkedIn使用的数据...

  • <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 Developer Docs: Making Your Website Shareable on LinkedIn

想要能够检查并验证您是否正确执行了吗?将您的URL输入LinkedIn Post Inspector

© www.soinside.com 2019 - 2024. All rights reserved.