Linkedin Share is not fetching the thumbnail image while sharing?

a 夏天 提交于 2019-12-10 12:03:09

问题


I am trying to share linked-in for a page in drupal. In that page there is a image, still the thumbnail image is missing while sharing the page in linked-in. This is my linked-in sharing code.

<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>

What is that I am missing w.r.t image being shared as thumbnail from that page to linked-in share.

Thanks in advance.


回答1:


LinkedIn's crawler will go to whatever the value of $tiny_bit_url is and attempt to determine the image to show based on the presence of OpenGraph tags in the page, and failing that, its own logic to attempt to pick the most relevant image on the page to showcase.

Additional documentation on how to best format your page content for sharing can be found here: https://developer.linkedin.com/docs/share-on-linkedin#opengraph



来源:https://stackoverflow.com/questions/29364825/linkedin-share-is-not-fetching-the-thumbnail-image-while-sharing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!