简体   繁体   中英

IOS how to get Facebook extended permission dialog

I'm creating an iPhone app that will publish photos to the Facebook pages on behalf of the user(where the user is the administrator). In order to do that I need to pop up the dialog (that user can give permission to my app) to manage_pages. How can I do that? Im using the latest Facebook SDK, Any help.

NSArray *permissions = 
[NSArray arrayWithObjects:@"manage_pages", nil];

[[FBSession activeSession] reauthorizeWithReadPermissions:permissions
                                    completionHandler:^(FBSession *session, NSError *error) {
                                        /* handle success + failure in block */
                                    }];

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