SocialAuthConfigurationException:应用程序密钥不正确LinkedIn的SocialAuth

时间:2016-03-23 11:22:03

标签: android linkedin socialauth

org.brickred.socialauth.exception.SocialAuthConfigurationException: Application keys are not correct. The server running the application should be same that was registered to get the keys.

虽然我的应用程序密钥是100%正确

api.linkedin.com.consumer_key = Client Id 

api.linkedin.com.consumer_secret = Client Secret

我的班级代码

 @Override
public void onClick(View v) {
    switch (v.getId()) {
        case R.id.facebook_login:

            mAdapter.authorize(MainActivity.this, SocialAuthAdapter.Provider.FACEBOOK);
            break;

        case R.id.twitter_login:

            mAdapter.authorize(MainActivity.this, SocialAuthAdapter.Provider.TWITTER);
            break;

        case R.id.linkdin_login:

            mAdapter.authorize(MainActivity.this, SocialAuthAdapter.Provider.LINKEDIN);
            break;
    }
}

我的SocialAuth罐子是:

socialauth-4.4.jar

socialauth-机器人-3.2.jar

我使用的是Android-23

1 个答案:

答案 0 :(得分:0)

我也面临同样的问题。请尝试以下代码:

var n = 333331,
    a = [1, 2, 4, 6, 7, 8, 9, 0],
 nina = (n,a) => {var h = [...""+n].reduce((p,c) => (p[c] = true,p),{});
                  return !a.some(e => h[e])};
console.log(nina(n,a));