LinkedIn API - 权限不足 - 休息/帖子

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

我们在尝试到达此端点时检测到问题:

https://api.linkedin.com/rest/socialMetadata?ids=List(‘<encoded ids>’)

错误消息是:

“Not enough permissions to access: artnerApiSocialMetadata.BATCH_GET.20231101”
{status: 403, serviceErrorCode: 100, code: "ACCESS_DENIED",…}
    code: "ACCESS_DENIED"
    message: "Not enough permissions to access: partnerApiSocialMetadata.BATCH_GET.20231101"
    serviceErrorCode: 100
    status: 403

它一直工作到昨天(2023 年 12 月 14 日,使用“旧”代币,但今天使用新生成的代币,它根本无法工作)。

我们仍然可以访问:

https://api.linkedin.com/rest/posts?author=urn%3Ali%3Aorganization%3A3515&q=author&count=<numberOfPosts>

我们创建了与旧令牌具有相同范围的新令牌 –

(r_emailaddress, r_liteprofile, r_organization_social, w_member_social)
,但没有成功。

然后我们创建了一个具有用户拥有的所有权限的新权限

(r_1st_connections_size, r_ads, r_ads_reporting, r_basicprofile, r_emailaddress, r_liteprofile, r_organization_admin, r_organization_social, rw_ads, rw_organization_admin, w_member_social, w_organization_social)
也没有成功。

访问令牌详细信息

  • 创建于:
  • 不到 10 秒前 (1702635745 UTC)
  • 最后授权:
  • 不到 10 秒前 (1702635745 UTC)
  • 过期:
  • 2 个月后(1707819749 UTC)
  • 认证类型:
  • 三足
  • 权限:
  • r_1st_connections_size、r_ads、r_ads_reporting、r_basicprofile、r_emailaddress、r_liteprofile、r_organization_admin、r_organization_social、rw_ads、rw_organization_admin、w_member_social、w_organization_social
  • 状态:
  • OAuth 令牌处于活动状态

在文档(社交元数据 API - LinkedIn | Microsoft Learn)中,我发现范围名称可能已更改,但我们没有看到该权限名称:(下面的屏幕):

enter image description here

例如,在开发人员计划中,我仍然看到“旧权限名称”(下面的屏幕):

enter image description here

我们尝试打开 LinkedIn 的支持请求,但他们告诉我们:

对于由此造成的麻烦,我深表歉意。目前我们没有直接支持 LinkedIn 上的 API 功能的支持团队。

欢迎您将问题发布到我们的 Stack Overflow,社区可以帮助解决您可能遇到的身份审核问题的任何技术问题 - https://developer.linkedin.com/support /stackoverflow

ProdCaseResponse <[电子邮件受保护]>

linkedin-api
1个回答
0
投票

您可能遇到了 LinkedIn API 身份验证实现中令人讨厌的小缓存错误

更改请求的权限后,您需要等待至少 5 分钟才能测试新代码。否则,您的新访问令牌的行为就像具有旧访问令牌的权限一样。

这个错误对我来说非常严重,以至于我创建了一个应用程序来证明它——当我不久前向 LinkedIn 报告这个问题时,这也很有帮助。没有关于他们何时(或是否)修复它的消息。

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