Linkedin Share在分享时未获取缩略图? [英] Linkedin Share is not fetching the thumbnail image while sharing?

查看:593
本文介绍了Linkedin Share在分享时未获取缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 < 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;?>&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.

解决方案

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆