不使用oauth2的LinkedIn直接共享

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

如何通过iOS应用在Linkedin中共享文本和网址。如果没有oAuth2身份验证,是否有可能?如果没有,没有人可以帮助我进行oAuth2集成和共享。

ios iphone ipad oauth-2.0 linkedin
2个回答
1
投票

不,

未经身份验证无法利用Share Api。LinkedIN具有其Rest API,您可以使用

https://developer.linkedin.com/docs/share-on-linkedin

要尝试签出API,可以在APIGEE播放

Auth 2.0的Git库

https://github.com/jeyben/IOSLinkedInAPI

https://github.com/mrugraj/MVLinkedIn-iOS(开发中)


0
投票

实际上非常简单。只需使用以下格式填写您的URL ...

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

来源:Official LinkedIn Share URL Documentation.

但是,您可能还希望共享其他信息,对吗?像titledescription以及其他所有好东西。使用HTML标头中的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" />

来源:Official Microsoft "Making Your Website Shareable on LinkedIn" Documentation

想要确保您正确执行了吗?那是最简单的部分。复制您要共享的网站的URL,例如example.com,然后在此处输入...

Official LinkedIn Post Inspector

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