/// <summary> /// This method fires when any startActivityForResult finishes. The requestCode maps to /// the value passed into startActivityForResult. /// </summary> public override void onActivityResult(int requestCode, int resultCode, Intent data) { base.onActivityResult(requestCode, resultCode, data); IDictionary <string, string> options = new Dictionary <string, string>(); if (requestCode == RC_GOOGLE_LOGIN) { /* This was a request by the Google API */ if (resultCode != RESULT_OK) { mGoogleLoginClicked = false; } mGoogleIntentInProgress = false; if (!mGoogleApiClient.Connecting) { mGoogleApiClient.connect(); } } else if (requestCode == RC_TWITTER_LOGIN) { options["oauth_token"] = data.getStringExtra("oauth_token"); options["oauth_token_secret"] = data.getStringExtra("oauth_token_secret"); options["user_id"] = data.getStringExtra("user_id"); authWithFirebase("twitter", options); } else { /* Otherwise, it's probably the request by the Facebook login button, keep track of the session */ mFacebookCallbackManager.onActivityResult(requestCode, resultCode, data); } }