简体   繁体   中英

Permissions dialog in Facebook iOS native app

I'm using Facebook iOS SDK 3.5 to log-in into my app, the following method is invoked:

FBSession openActiveSessionWithReadPermissions

If native iOS login is not enabled and facebook iOS app is installed, the login process will get redirected to the facebook app. The problem is that every single time 'FBSession openActiveSessionWithReadPermissions'is invoked, the facebook app presents the permission dialog to the user, even when the user already authorized the FB app.

The permission list is empty (nil). This problem does not happen if native ios or safari are used to log -in.

Any ideas? Thanks

You can check if the user has successfully logged in by checking for an access token here

Also, you can make sure you aren't popping up a GUI from each call by setting allowLoginUI to false.

+ (BOOL)openActiveSessionWithAllowLoginUI:(BOOL)allowLoginUI;

I've not done any iOS FB stuff myself, but that's what I got from reading the docs.

Also, there seems to be a somewhat related question posted here .

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