调用LinkedIn企业动态API遇权限不足,寻求替代API
解决LinkedIn企业帖子API权限问题及替代方案
错误原因
你调用activityFeeds接口返回403权限不足,是因为networkShares查询需要**r_organization_social**权限,该权限无法默认获取,必须通过LinkedIn开发者平台提交权限审核申请。
替代API方案
如果目标是获取企业(组织)发布的帖子,推荐使用以下两个官方API:
1. UGC Posts API
用于获取组织发布的原生内容(含帖子、图文、视频等),支持按组织ID筛选:
https://api.linkedin.com/v2/ugcPosts?q=authors&authors=urn:li:organization:{你的组织ID}&count=10&oauth2_access_token={你的令牌}
所需权限:r_organization_social(需平台审核)
2. Organizational Entity Share Feed API
专门用于获取组织的分享动态,返回格式更贴合企业动态场景:
https://api.linkedin.com/v2/organizationalEntityShareFeed?q=organizationalEntityShareFeed&organizationalEntity=urn:li:organization:{你的组织ID}&count=10&oauth2_access_token={你的令牌}
所需权限:r_organization_social(需平台审核)
额外说明
目前LinkedIn对公开获取企业帖子的限制严格,所有能稳定获取组织内容的接口都需申请r_organization_social权限。你需要在开发者平台的应用后台提交权限申请,明确说明你的使用场景,待审核通过后即可正常调用上述接口。
内容的提问来源于stack exchange,提问作者Ranjit
相关产品推荐
相关产品推荐

