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

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

问题描述

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

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.

提前致谢.

推荐答案

LinkedIn 的爬虫将访问 $tiny_bit_url 的任何值,并尝试根据 OpenGraph 的存在确定要显示的图像页面中的标签,如果失败了,它自己的逻辑会尝试选择页面上最相关的图片来展示.

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.

可以在此处找到有关如何以最佳方式设置共享页面内容格式的其他文档:https://developer.linkedin.com/docs/share-on-linkedin#opengraph

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天全站免登陆