2016-03-23 6 views
0
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. 

während meine Anwendungsschlüssel 100%SocialAuthConfigurationException: Anwendungsschlüssel korrekt sind nicht SocialAuth für LinkedIn

korrekt sind
api.linkedin.com.consumer_key = Client Id 

api.linkedin.com.consumer_secret = Client Secret 

My Class Code

@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; 
    } 
} 

und meine SocialAuth Gläser sind:

socialauth-4.4.jar

Ich stehe auch das gleiche Problem

socialauth-android-3.2.jar

I Android-23

Antwort

0

verwenden. Bitte versuchen Sie den folgenden Code:

socialAuthAdapter=new SocialAuthAdapter(new ResponseListener()); 

       // Add providers 
       socialAuthAdapter.addProvider(SocialAuthAdapter.Provider.LINKEDIN, R.drawable.linkedin); 

       // Add keys and Secrets 
       try{ 
         socialAuthAdapter.addConfig(SocialAuthAdapter.Provider.LINKEDIN, LinkedInConst.CLIENT_ID,LinkedInConst.CLIENT_SECRET,null); 
       } 
       catch (Exception e){ 
         Log.e(TAG, "initialize: "+e.toString()); 
       }