简体   繁体   中英

Unity Facebook sdk on android login permission issue

I am currently using the facebook sdk(for unity, not the android one) in my unity project.

the login basically works.

However there are two cases, whether the android device has the facebook app installed or not.

When the user logins with the facebook app installed, all the permission shows up properly:

user_friends,publish_actions,basic_info,public_profile

However when the app is not installed, the login is done through the web player. The login

works, but when it asks for permission, only the public_profile is shown. So in the game

I'am not able to bring the user friend list.

Does anyone have this issue..?

If you would like to get friend list, you have to request with graph api to get friend list something like "me?fields=id,name,friends" Additionally, There is testing page for graph api. You can test graph api before using it what permission you gonna be needed

Check this out, " https://developers.facebook.com/tools/explorer/145634995501895 "

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