在Linkedin上共享更新不会抓取/拉动页面标题和内容

问题描述 投票:0回答:1

我正在一个网站上工作,我们有一项允许客户在LinkedIn上共享其页面的要求。我们已经使用AddThis实现了一个共享按钮,该按钮似乎对LinkedIn很好用,但是手动共享对LinkedIn可以正常工作的任何页面(通过我们帐户的共享更新功能)似乎都无法正常工作。手动共享链接时,会正确生成指向页面的链接,但是页面的标题和描述性文本(我们正在谈论的是新闻文章)并不会一直填充。似乎大多数时候我们都在获取404页面的标题和内容,有时甚至是404页面的标题和目标页面的内容。还有其他人遇到过这个问题吗?如果是这样,您能告诉我信息的来源和来源吗?

html web linkedin social-networking addthis
1个回答
0
投票

例如,要预先填充站点的titleimage等的预览,您需要使用og:标签,...

  • <meta property='og:title' content='Title of the article"/>
  • <meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
  • <meta property='og:description' content='Description that will show in the preview"/>
  • <meta property='og:url' content='//www.example.com/URL of the article" />

您将这些插入到HTML的<head>块中。

来源:LinkedIn Developer Docs: Making Your Website Shareable on LinkedIn

您可以通过使用网站URL上的LinkedIn Post Inspector来验证自己是否正确实施了。

© www.soinside.com 2019 - 2024. All rights reserved.