-2

看起来 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);
});

有任何想法吗?

4

2 回答 2

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许可,那么您必须阅读申请链接页面上的条款和条件中的申请链接。

于 2015-06-01T07:29:57.913 回答
0

在以下人员的帮助下找到了答案oauth.io

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

Linkedin 对其 API 进行了一些更改,如果您在未应用到 linkedin Companies API 的情况下使用r_fullprofileor权限,可能会导致 403 错误。r_contactinfo

于 2015-06-01T04:17:06.517 回答