private IEnumerator OnLoginFinished(JSONObject eventInfo) { loggedIn = true; string profileId = eventInfo["user_id"].str; string accessToken = eventInfo["access_token"].str; WWW www = new WWW("https://graph.facebook.com/" + profileId + "?fields=email&access_token=" + accessToken); yield return(www); Grow.JSONObject responseJson = new Grow.JSONObject(www.text); Grow.JSONObject email = responseJson ["email"]; StansAssetsGrowIntegration.Instance.OnLoginFinished(PROVIDER, eventInfo ["user_id"].str, email != null? email.str : null); }
private IEnumerator OnLoginFinished(JSONObject eventInfo) { loggedIn = true; string profileId = eventInfo["user_id"].str; string accessToken = eventInfo["access_token"].str; WWW www = new WWW("https://graph.facebook.com/" + profileId + "?fields=email&access_token=" + accessToken); yield return www; Grow.JSONObject responseJson = new Grow.JSONObject (www.text); Grow.JSONObject email = responseJson ["email"]; StansAssetsGrowIntegration.Instance.OnLoginFinished (PROVIDER, eventInfo ["user_id"].str, email != null? email.str : null); }