我对有关社交媒体共享链接的linkedin api 有一些疑问。api ( https://developer.linkedin.com/docs/share-on-linkedin ) 显示,忽略 url 参数,进一步的参数,如标题或摘要。但是,如果我调用 url,例如从文档:https ://www.linkedin.com/shareArticle?mini=true& url =http : //developer.linkedin.com&title=LinkedIn%20Developer%20Network &summary=My%20favorite% 20developer%20program&source=LinkedIn
它重定向到 https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2Fdeveloper.linkedin.com 但没有参数..
是linkedin api的变化还是临时问题?还是我的理解有问题?
最好的问候理查德
自从被微软收购以来,LinkedIn 发生了很大的变化。你曾经为之工作过title,等等,但现在不再了。这是您可以使用的唯一可用格式...
https://www.linkedin.com/sharing/share-offsite/?url={url}
Run Code Online (Sandbox Code Playgroud)
来源:LinkedIn 官方分享文档。
预览title、image等的唯一方法是使用og:标签。将它们插入<head>HTML 块中...
<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 上共享。
而且,如果您想确保所做的一切都是正确的,请将您网站的 URL 插入LinkedIn Post Inspector中。
| 归档时间: |
|
| 查看次数: |
4373 次 |
| 最近记录: |