Linkedin Share URL预览未正确显示

Wol*_*ine 7 linkedin meta-tags

我需要在网站上分享动态创建的网址到facebook和linkedin.我正在分享到Facebook正确,并已设置所有需要的og标签.但对于linkedin来说它不起作用.

这是我的网址:https://www.fourthambit.com/blogs_fa/102048

它在Facebook中正确解析并正确显示预览.

但同样的链接在linkedin中不起作用.

我错过了什么吗?

设置所有需要的元标记:

<meta property="og:title" content="Indian Media: Then.... Now... and Later" />
<meta content="Sensationalism has become synonymous with the Indian Media, especially Television. In 2008 dur..." name="description" />
<meta property="og:description" content="Sensationalism has become synonymous with the Indian Media, especially Television. In 2008 dur..." />
<meta content="Academic network" name="keywords" />
<meta property="og:image" content="https://www.fourthambit.com/article/getarticlephoto/big/ZGNlZQD4/0/102/20150807050217-12217198186.jpg" />
<img src="https://www.fourthambit.com/article/getarticlephoto/big/ZGNlZQD4/0/102/20150807050217-12217198186.jpg" style="display: none !important;" />
<meta property="og:type" content="website" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
Run Code Online (Sandbox Code Playgroud)

这是我尝试在linkedin更新状态栏textarea中查看预览时的ajax调用.

https://www.linkedin.com/sharing/api/url-preview?url=https://www.fourthambit.com/blogs_fa/102048

小智 7

这个问题的原因可能如下:

"不幸的是,LinkedIn会在第一次预览链接时缓存它检索到的数据,并将其缓存一周!"

和解决方案:

"清除LinkedIn的共享预览缓存的唯一方法是诱使LinkedIn认为您的页面是一个不同的(和新的)页面.

这是通过向链接添加一个伪造的参数来完成的.它不会影响您的网页,但会强制重新获取元数据.

例:

Original link: http://beantin.se/consultant-resume "New" link: http://beantin.se/consultant-resume?1 "

经过几个小时的战斗,它对我有用.解决方案来自:http://beta.beantin.se/clearing-linkedin-link-sharing-preview-cache/


Won*_*Bae 6

LinkedIn 推出了 Post Inspector。您现在可以执行以下操作来清除 LinkedIn 预览缓存:

第 1 步:访问https://www.linkedin.com/post-inspector/inspect/

第 2 步:输入您的网址并单击“检查”,您将看到更新后的预览图像

第 3 步:现在尝试在 LinkedIn 上分享您的网址