This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void AuthCallback(ILoginResult result) | |
{ | |
if (FB.IsLoggedIn) | |
{ | |
// AccessToken class will have session details | |
var aToken = AccessToken.CurrentAccessToken; | |
// Print current access token's User ID | |
Debug.Log(aToken.UserId); | |
// Print current access token's granted permissions | |
foreach (string perm in aToken.Permissions) | |
{ | |
Debug.Log(perm); | |
} | |
} | |
else | |
{ | |
Debug.Log("User cancelled login"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment