void GetId(Facebook.Unity.IGraphResult result) { id = result.ResultDictionary["id"].ToString(); Debug.Log("email: " + id); data["id"] = id; }
public void GetFacebookName(Facebook.Unity.IGraphResult result) { string fbName = result.ResultDictionary["name"].ToString(); UserName = fbName; Debug.Log("fbName: " + fbName); }
void GetFacebookData(Facebook.Unity.IGraphResult result) { string fbId = result.ResultDictionary["id"].ToString(); string name = result.ResultDictionary["name"].ToString(); Debug.Log("fbIdddddd: " + fbId); User u = new User(); u.facebook = fbId; u.name = name; u.CheckExist(); Debug.Log("The CheckExist" + u.exist); if (u.exist) { u.Login(); } else { u.Create(); u.Login(); } if (u.authenticated) { string path = Application.persistentDataPath + "/User.txt"; StreamWriter writer; string uID = u.id.ToString(); storeLoginSessionId.loginId = u.id; if (string.IsNullOrEmpty(u.name)) { storeLoginSessionId.name = u.username; } else { storeLoginSessionId.name = u.name; } storeLoginSessionId.email = u.email; if (!File.Exists(path)) { writer = File.CreateText(path); writer.Write(uID + "\n"); writer.Write(storeLoginSessionId.name + "\n"); writer.Close(); } else { File.WriteAllText(path, uID + "\n" + storeLoginSessionId.name + "\n"); } SceneManager.LoadScene("HiARRobot"); } else { Debug.Log("Login Failed"); } }
void GetFacebookData(Facebook.Unity.IGraphResult result) { string fbName = result.ResultDictionary["name"].ToString(); string email = result.ResultDictionary["email"].ToString(); signupApi = new SignupApi(); signupApi.user_name = fbName; signupApi.user_email = email; Debug.Log("fbName: " + fbName); Debug.Log("email: " + email); StartCoroutine("Signup"); }
/** * Sets the username of the user **/ void GetFacebookData(Facebook.Unity.IGraphResult result) { string fbName = result.ResultDictionary["name"].ToString(); datahandler.SetFBUserName(fbName); }
public SA_IGraphResult_Proxy(FB_Plugin.IGraphResult result) : base(result) { m_result = result; }
void GetFacebookData(Facebook.Unity.IGraphResult result) { fbName = result.ResultDictionary["first_name"].ToString(); name.text = "Hello!" + fbName; Debug.Log("fbName: " + fbName); }