无需 oauth2 的 Linkedin 直接分享
Linkedin direct share without oauth2
如何通过 iOS 应用在 Linkedin 中分享文本和 url。没有 oAuth2 身份验证是否可能,如果不能,谁能帮助我简单地进行 oAuth2 集成和共享。
没有,
未经身份验证无法利用共享 Api。
LinkedIN 有其 Rest API,您可以使用
https://developer.linkedin.com/docs/share-on-linkedin
要试用请查看 APIs,您可以在 APIGEE
玩
Git Auth 2.0 的库
其实很简单。只需使用以下格式填写您的 URL...
https://www.linkedin.com/sharing/share-offsite/?url={url}
来源:Official LinkedIn Share URL Documentation.
但是,您可能还想分享其他信息,对吧?像 title
、description
和所有其他好东西。在你的 HTML header 中使用 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
,然后在这里输入...
如何通过 iOS 应用在 Linkedin 中分享文本和 url。没有 oAuth2 身份验证是否可能,如果不能,谁能帮助我简单地进行 oAuth2 集成和共享。
没有,
未经身份验证无法利用共享 Api。 LinkedIN 有其 Rest API,您可以使用
https://developer.linkedin.com/docs/share-on-linkedin
要试用请查看 APIs,您可以在 APIGEE
玩Git Auth 2.0 的库
其实很简单。只需使用以下格式填写您的 URL...
https://www.linkedin.com/sharing/share-offsite/?url={url}
来源:Official LinkedIn Share URL Documentation.
但是,您可能还想分享其他信息,对吧?像 title
、description
和所有其他好东西。在你的 HTML header 中使用 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
,然后在这里输入...