Probably I am overlooking something, but I cannot find where I can set the mode in which the extra permissions are requested from the user with the iOS Facebook SDK.
I am requesting additional publishing permissions with the code from below (and yes, I've set facebookLoginView.loginBehavior = FBSessionLoginBehaviorUseSystemAccountIfPresent; for the login), but the extra permission request doesn't pop up in the app, instead it opens up the facebook application. Any idea how to use the built in popup for this request?
if ([[FBSession activeSession] isOpen])
{
NSArray *permissions = [[FBSession activeSession] permissions];
NSArray *newPermissions = @[@"publish_stream"];
if (![permissions containsObject:@"publish_stream"])
{
[[FBSession activeSession] requestNewPublishPermissions:newPermissions defaultAudience:FBSessionDefaultAudienceEveryone completionHandler:^(FBSession *session, NSError *error) {
if (error == nil)
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"FacebookWritePermissionsGranted" object:nil userInfo:nil];
}
}];
}
}