beizhu
type
Post
status
Published
date
Jun 24, 2024
slug
summary
https://www.linkedin.com/sharing/share-offsite/?url={url}
tags
工具
category
技术
icon
password
1 - 获取正确的 URL
目前,唯一支持的参数是
url,新的共享链接如下...确保
url已编码,使用类似的东西fixedEncodeURIComponent()。来源:官方 Microsoft.com Linkedin 分享插件文档。现在,所有 LinkedIn.com 的开发者文档链接似乎都是空白页——这可能与微软收购 LinkedIn 有关。
后面不要往下看了
2 - 设置自定义参数(标题、图片、摘要等)
<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" />
然后 LinkedIn 就会使用这些!来源:LinkedIn 开发者文档:让您的网站可以在 LinkedIn 上分享。
2010:
2016:
2020:
LinkedIn 官方分享 API:
https://www.linkedin.com/shareArticle?mini=true&url={articleUrl}&title={articleTitle}&summary={articleSummary}&source={articleSource}https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fnews.metal.com%2Fnewscontent%2F102815854%2FOperating-rates-at-Chinese-galvanising-producers-fell-last-week&title=aaaaa&summary=bbbbbb&source=aaa.cc
使用 JavaScript 在弹出窗口中打开它或将其加载到
iframe。Post Inspector
Get insights into how your content shows up on LinkedIn with Post Inspector.