添加这个。 LinkedIn 共享无法在 iPhone 上使用
当我尝试使用 AddThis 共享我的页面到 Linkedin 时,它在桌面上工作正常,但当我在 iPhone 上执行相同操作时,即使相同的 URL 也无法工作。
要测试它:
打开 AddThis 主页并单击共享到 LinkedIn 按钮。结果我有http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.addthis.com%2F%23.Tt3z80Hs1Wo.linkedi n&title=AddThis+-+Share+Button%2C+Social+Bookmark%2C+Sharing+Plugins+and+Module&ro=false&summary=&source=在我的浏览器中打开,运行正常。
尝试从 iPhone 打开相同的 URL。在这种情况下,我遇到以下错误:“我们很抱歉。发生了意外情况,无法完成您的请求。请关闭此窗口并重试。”
听起来像是 LinkedIn API 问题。有什么想法如何解决它吗?
谢谢。
When I try to share my page with AddThis to Linkedin it is working fine from desktop, but even the same URL is not working when I do just the same from iPhone.
To test it:
Open AddThis home page and click share to LinkedIn button. As a result I have http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.addthis.com%2F%23.Tt3z80Hs1Wo.linkedin&title=AddThis+-+Share+Button%2C+Social+Bookmark%2C+Sharing+Plugins+and+Module&ro=false&summary=&source= opened in my browser, which is working fine.
Try to open just the same URL from an iPhone. I have the following error in this case: "We’re sorry. Something unexpected happened and your request could not be completed. Please close this window and try again."
Sounds like LinkedIn API issue. Any ideas how can I fix it?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
今天早上我遇到了完全相同的问题。经过一番挖掘,发现 linkedin http sharearticle API 已被弃用:
https://developer .linkedin.com/comment/9492#comment-9492
,替代方案是 JavaScript API 和 REST API,我无法链接到它们,因为我没有足够的声誉。不过,在 Linkedin 开发者页面上很容易找到它们。可以在此处自动为您构建 Linkedin 共享按钮的简单 JavaScript:
https://developer.linkedin。 com/plugins/share-button
。希望有帮助!
I was having exactly the same problem this morning. After some digging it turns out that the linkedin http sharearticle API has been deprecated:
https://developer.linkedin.com/comment/9492#comment-9492
, alternatives are the JavaScript API and the REST API which I can't link to as I don't have enough reputation. However they are easy to find on the Linkedin developer pages. Simple JavaScript for a Linkedin share button can be automatically constructed for you here:
https://developer.linkedin.com/plugins/share-button
. Hope that helps!
您需要更新 URL 格式以符合 微软官方“在 LinkedIn 上分享”文档。 URL 的格式应该是...
此外,诸如
source
、title
和summary
等参数均已弃用,但您可以复制通过在网页的 HTML 中设置适当的og:
标记来再次控制它们的行为,无论如何,这是一个很好的标准。引用自LinkedIn 官方“让您的网站可在 LinkedIn 上共享”文档,只需将这些内容放入您页面的 HTML 中:如果您进行这些调整,在您的页面上共享应该就像以前一样!
You're going to want to update your URL format to conform to the Official Microsoft "Share on LinkedIn" Documentation. The format of your URL should be...
Furthermore, parameters like
source
,title
, andsummary
have all been deprecated, but you can replicate their behavior again by setting the appropriateog:
tags in the HTML of your web page, which is good standard anyway. Quoting from Official LinkedIn "Making Your Website Shareable on LinkedIn" Documentation, just put these into your page's 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" />
If you make these adjustments, sharing on your page should behave just like it once did!