App42 3.2.1 SDK: An element with the same key already exists in the dictionary.

0 votes

Hi, I'm Having problems with the App42 3.2.1 SDK. When I'm trying to connect with facebook, the app waits for Facebook's response, when it's done, I get this error: 

 

ArgumentException: An element with the same key already exists in the dictionary.

My code is this: 
 
    public void FacebookLoginRequest(){

        string[] perms = new string[2];
        perms [0] = FBPerms.email;
        perms [1] = FBPerms.user_friends;

        App42API.Initialize(AppGlobals.appkeyAppGlobals.secret);
        App42Log.SetDebug(true); 
        App42API.BuildSocialService().DoFBOAuthAndGetToken(AppGlobals.FBAppID,

perms,true,  new UnityCallBack_FBLogin());
    }

    public void OnSuccess(object response)  

    {  
        
        Social social = (Socialresponse;      
        App42Log.Console("userName is" + social.GetUserName());   
        App42Log.Console("fb Access Token is" + social.GetFacebookAccessToken()); 
        FacebookLogin.LoginSucces ();
    }  

}

 

Sorry if this question is in the wrong category. 

 
 
 
 
asked Apr 1, 2015 in App42 Cloud API-BaaS by jpgb010 (10 points)
Can you please check onException method and see what you are getting as complete stack trace there?

1 Answer

0 votes

Hello,

There is a bug in the 3.2.1 version of App42 Unity SDK, which is resolved in 3.2.2. Kinldy find the latest binary from here and let us know if it helps.

Himanshu Sharma

answered Apr 2, 2015 by hs00105 (2,005 points)
That fixed it!!! Thank your for the support!
Great to hear that your query has been resolved. Let us know if need further information regarding this.
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...