This script with the sdk facebook makes sure to print me the name and cognme user logged in. How come every time I log in asking me the token? if i try with another profile will not work because the token is associated with my account. Code (csharp): using UnityEngine; using System.Collections; using System; using System.Collections.Generic; public class init : ConsoleBase { bool isInit = false; string hasPerm = "***"; string fbname; private void CallFBInit() { FB.Init(OnInitComplete, OnHideUnity); } void OnGUI() { if (GUI.Button (new Rect (10, 10, 300, 100), "InitInit: " + isInit)) CallFBInit (); if (GUI.Button (new Rect (10, 110, 300, 100), "LogIn - Logged: " + FB.IsLoggedIn)) { CallFBLogin (); print ("NOME"+FB.UserId +"/first_name"); } if (GUI.Button (new Rect (10, 210, 300, 100), "Permission - friends: " + hasPerm)) { CallPermissionCheck (); } GUI.Label(new Rect(10, 10, 200, 200), fbname); } private void OnInitComplete() { Debug.Log("FB.Init completed: Is user logged in? " + FB.IsLoggedIn); isInit = true; } private void OnHideUnity(bool isGameShown) { Debug.Log("Is game showing? " + isGameShown); } private void CallFBLogin() { FB.Login("publish_actions, user_friends", LoginCallback); } void LoginCallback(FBResult result) { string lastResponse; if (result.Error != null) lastResponse = "Error Response:\n" + result.Error; else if (!FB.IsLoggedIn) { lastResponse = "Login cancelled by Player"; } else { lastResponse = "Login was successful!"; } Debug.Log("lastResponse: "+lastResponse); } void CallPermissionCheck() { FB.API("/me/permissions", Facebook.HttpMethod.GET, PermissionCallback); } void PermissionCallback(FBResult result) { if (!String.IsNullOrEmpty(result.Error)) { Debug.Log("Error Response:\n" + result.Error); } else { Debug.Log("Get user's permissions was successful!"); Debug.Log ("Result: "+result.Text); var permissionDict = Facebook.MiniJSON.Json.Deserialize(result.Text) as Dictionary<string, object>; IDictionary persmissionData = permissionDict; foreach(IDictionary perm in (List<object>)persmissionData["data"]) { if((string)perm["permission"] == "user_friends") { hasPerm = (string)perm["status"]; // This will deauthorise the permissions for the user and then log them out /* if(hasPerm != "granted") { FB.API ("me/permissions", Facebook.HttpMethod.DELETE, RemovePermissionCallback); FB.Logout(); } */ FB.API("me?fields=name", Facebook.HttpMethod.GET, NameCallBack); } } } } void RemovePermissionCallback(FBResult result) { if (!String.IsNullOrEmpty(result.Error)) { Debug.Log("Error Response:\n" + result.Error); } else { Debug.Log("RemovePermissionCallback was successful!"); Debug.Log ("Result: "+result.Text); } } void NameCallBack(FBResult result) { IDictionary dict = Facebook.MiniJSON.Json.Deserialize(result.Text) as IDictionary; fbname = dict["name"].ToString(); } }