Reputation: 11
I'm trying to implement the Facebook limited login to Unity iOS app. We already have advanced access to the permissions that I'm trying to request, but limited login doesn't return the data. What I understand from the documentation the permissions data should be inside the returned jwt token playload.
I'm using this code for the login:
`var scope = new List<string> { "public_profile", "user_friends", "user_location", "user_gender" };`
`FB.Mobile.LoginWithTrackingPreference(LoginTracking.ENABLED, scope, "nonce123", OnLoginCallback);`
When I'm testing the login it asks for the permissions: pic from fb login asking permissions
But the AuthenticationToken I get from this only has the public_profile information and not the data from requested permissions.
We have ATT added in our app and I have debugged the login process. When ATT is denied the result is this with an invalid accessToken:
{"declined_permissions":[],"callback_id":"2","opened":"true","last_refresh”:”123”,”permissions":["openid","user_location","user_gender","public_profile","user_friends","basic_info"],"auth_token_string”:”eyJhb…”,`
`"user_id”:”123”,”auth_nonce":"nonce123","graph_domain":"facebook","expiration_timestamp”:”123”,`
`"granted_permissions":["openid","user_location","user_gender","public_profile","user_friends","basic_info"],"access_token”:”abc”}
Changed some of the info for safety, but I can see the granted permissions in the result. The info is just missing from the AuthenticationToken.
Also have tried to use the profile class after the login and the info is also missing from that.
Upvotes: 1
Views: 24