How to "double-check" email permission using the iOS SDK for Android 3.21.1?
Right now, my login by clicking the Facebook button displays the following method:
- (void)openFacebookSession
{
[FBSession openActiveSessionWithReadPermissions:@[@"public_profile", @"user_friends", @"email"] allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
}
This works great as long as the user does not deny access to "email". I see in the FB docs that I can re-request access to the user's email once. According to FB docs :
If someone has denied permission for your application, the login dialog will prevent your application from re-requesting permission unless you pass auth_type = rerequest along with your request.
How to pass "auth_type = rerequest" to Facebook servers via iOS SDK? Is there a dedicated method for this?
+3
source to share