Publish or manage permissions are not permited to to be requested with read permissions FACEBOOK SDK

狂风中的少年 提交于 2019-11-29 11:28:51

If you want to open an active session with permissions other than ReadPermissions, you can try

 openActiveSessionWithPublishPermissions:(NSArray *)permissions 
                         defaultAudience:(FBSessionDefaultAudience) 
                            allowLoginUI:(BOOL)allowLoginUI
                       completionHandler:^(FBSession *session, FBSessionState status, NSError *error)handler

method. Or if you want to reauthorize an already open session with other permissions , you can use

- (void)reauthorizeWithReadPermissions:(NSArray*)readPermissions
                 completionHandler:(FBSessionReauthorizeResultHandler)handler;

or

 - (void)reauthorizeWithPublishPermissions:(NSArray*)writePermissions
                    defaultAudience:(FBSessionDefaultAudience)defaultAudience
                  completionHandler:(FBSessionReauthorizeResultHandler)handler;

Methods. Try going through FBSession.h class.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!