iphone - re request Facebook permissions with Facebook sdk 3.x in iOS -
i using facebook sdk 3.14 , requesting user forpublic profile, email, user_photos permissions
. using email login purpose. if user denies email during login , there no way ask back. have seen apps airbnb , zomato returning user permissions page unless reuired permissions given user.
is there way in can re-request user permissions not granted during login process.
i using below code requesting permissions
[fbsession openactivesessionwithreadpermissions:@[@"public_profile",@"email",@"user_friends",@"user_photos"] allowloginui:yes completionhandler: ^(fbsession *session, fbsessionstate state, nserror *error) { // retrieve app delegate if(error.code ==2 && [errorreason isequaltostring:@"com.facebook.sdk:userlogincancelled"]){ [facebookwebobj performselector:@selector(hideanimatedloader) withobject:nil afterdelay:0.5]; } else { // email id , login user } }];
Comments
Post a Comment