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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…