Linkedin Share在分享时未获取缩略图? [英] Linkedin Share is not fetching the thumbnail image while sharing?
问题描述
这是我的链接共享代码。
< a href ='http://www.linkedin .com / shareArticle?mini = true& url =<?php print $ tiny_bit_url;?& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;<?php print $ data-> node_title;?& PHP打印$ summary; ?>>
< img src =linkedin-icon.png/>
< / a>
什么是我没有将该图像作为缩略图从该页面共享到链接的共享。
提前感谢
$ code> $ tiny_bit_url 的值是根据页面中OpenGraph标签的存在而尝试确定要显示的图像,并且由于其自身的逻辑尝试选择
可以在这里找到有关如何最佳地格式化您的页面内容进行共享的其他文档: https://developer.linkedin.com/docs/share-on-linkedin#opengraph
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.
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
这篇关于Linkedin Share在分享时未获取缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!