Linkedin Share not retrieving thumbnail when sharing?
I am trying to share a page link in drupal. There is an image on this page, but when the page is shared, the thumbnail image is missing in the file. This is my messaging 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 it that I am missing a wrt image that is being shared as a thumbnail from this page to share.
Thanks in advance.
0
source to share
1 answer
The LinkedIn crawler will go where it matters $tiny_bit_url
and try to determine the displayed image based on the presence of OpenGraph tags on the page, otherwise its own logic will try to pick the most relevant image on the page to display.
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
+3
source to share