简体   繁体   中英

Unity Facebook SDK 5.1 email permission not granted

I just followed the tutorial of unity sdk about friend smash, I used unity 4.3 and the sdk is 5.1.

I followed the tutorial until the personalize section here:

https://developers.facebook.com/docs/games/unity/unity-tutorial#personalize

I stopped here because I want to get not only the user name but the email too, the thing is I can't do it.

I even checked the permisions granted, but only public_profile and user_friends are grantend. I'm using the FB.Login function like this:

FB.Login("email,publish_actions", LoginCallback);

But even this way I don't have access to the email field.

Make sure you test it on the android platform. I found the email permission was not granted when testing the app in a PC build, but when deployed onto an Android device the permission was correctly granted for email.

Note: Had the same problem with Unity SDK 6.0.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM