Пример #1
0
 public async Task GetFacebookInfoAsync(IResult result)
 {
     if (result.Error == null)
     {
         string fbId    = result.ResultDictionary["id"].ToString();
         string fbName  = result.ResultDictionary["name"].ToString().Replace(" ", ".");
         string fbEmail = result.ResultDictionary["email"].ToString();
         Debug.Log("GetFacebookInfo");
         Debug.Log("GetFacebookInfo" + result.ResultDictionary["name"].ToString());
         Debug.Log("GetFacebookInfo" + result.ResultDictionary["email"].ToString());
         //Debug.Log("GetFacebookInfo" + result.ResultDictionary["user_link"].ToString());
         await oAuthManager.RegisterFB(fbName, fbId, fbEmail);
     }
     else
     {
         Debug.Log(result.Error);
         // result.Error;
     }
     SucessfullLoginCompleted(result.Error);
 }