Try the following:
- (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI {
NSArray *permissions = [[NSArray alloc] initWithObjects: @"email", nil];
return [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
}
Call this method with YES, you can give another permission, for example
[[NSArray arrayWithObjects:
@"email",
@"user_birthday",
@"user_likes",
@"user_location",
@"user_photos",
@"read_stream",
@"publish_stream",
@"publish_actions",
@"status_update",
@"user_about_me",
@"read_friendlists",
@"friends_about_me",
@"friends_birthday",
@"friends_photos",
nil] retain];
source
share