AddThis。 LinkedIn共享不适用于iPhone

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

[当我尝试与AddThis共享页面到Linkedin时,它在桌面上运行良好,但是当我在iPhone上执行相同操作时,即使是相同的URL也无法正常工作。

测试:

  1. 打开AddThis主页,然后单击“共享到LinkedIn”按钮。结果,我在浏览器中打开了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=,效果很好。

  2. 尝试从iPhone打开相同的URL。在这种情况下,我出现以下错误:“ 对不起。发生了意外情况,您的请求无法完成。请关闭此窗口,然后重试。

听起来像LinkedIn API问题。有什么想法我该如何解决?

谢谢。

linkedin addthis
2个回答
0
投票

今天早上我遇到了完全相同的问题。经过一番挖掘,结果发现不赞成使用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

。希望能有所帮助!


0
投票

您将要更新您的URL格式以符合Official Microsoft "Share on LinkedIn" Documentation。您的URL格式应为...

https://www.linkedin.com/sharing/share-offsite/?url={url}

此外,sourcetitlesummary之类的参数已全部弃用,但您可以通过在网页HTML中设置适当的og:标签来再次复制其行为,这是很好的标准无论如何。引用[Official LinkedIn "Making Your Website Shareable on LinkedIn" Documentation,只需将它们放入页面的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" />

如果进行了这些调整,则在页面上共享[[应该的行为就像以前一样!

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