问题
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;?>&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