【问题标题】:oauth.io linkedin gives 403 error, when the same code used to work fineoauth.iolinkedin 给出 403 错误,当相同的代码用于正常工作时
【发布时间】:2015-07-30 17:57:02
【问题描述】:

Linkedin 或 oauth.io 最近似乎发生了一些变化。

以前可以正常连接,现在报403错误。

还在 oauth.io 网站上使用我的应用设置进行了检查,当尝试使用“尝试 Oauth”按钮进行连接时,它给出了相同的错误:

Connection failed with linkedin
We received an error while we were trying to authorize you. It can come from     your API Keys or your provider app settings.

This error was returned by the server:

Error during the 'request_token' step (HTTP status code: 403)

Linkedin App 界面似乎发生了变化:

  • 重新进入白名单
  • 重新输入了 oauth 2.0 链接
  • 重新输入了我的信息等,看起来设置正确
  • 这种设置直到最近才有效

这是代码:

OAuth.initialize('xxxxx');

OAuth.popup('linkedin')
.done(function(result) {

    console.log("Connecting to Linkedin");

    result.me()
    .done(function (response) {

        //            

    })
    .fail(function (err) {

        alert("Problem connecting to Linkedin: " + err);
    });

})
.fail(function (err) {

    alert("Problem connecting to Linkedin: " + err);
});

有什么想法吗?

【问题讨论】:

  • 使用phonegap+javascript api,但问题似乎也在oauth.io控制台

标签: linkedin linkedin-jsapi oauth.io


【解决方案1】:

oauth.io的帮助下找到了答案:

查看此链接:https://developer.linkedin.com/support/developer-program-transition

Linkedin 对其 API 进行了一些更改,如果您使用 r_fullprofiler_contactinfo 权限而未应用到linkedin Companies API,这可能会导致 403 错误。

【讨论】:

    【解决方案2】:

    2015 年 2 月 12 日,LinkedIn 宣布对其开发人员计划进行一系列更改。这些更改现已开始生效,并将在 2015 年 5 月 12 日至 5 月 19 日期间推广到整个 LinkedIn 应用程序库。

    请阅读以下网址

    https://developer.linkedin.com/support/developer-program-transition

    https://developer.linkedin.com/docs/apply-with-linkedin

    注意-如果您请求r_fullprofiler_contactinfo 许可,那么您必须阅读申请链接的条款和条件在与链接页面申请。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-26
      • 2016-10-16
      • 1970-01-01
      • 1970-01-01
      • 2013-07-19
      • 1970-01-01
      • 2019-03-09
      相关资源
      最近更新 更多