I am developing an app that uses facebook authorization.
Authorize app like this
FBSession *session = [[FBSession alloc] init];
// Set the active session
[FBSession setActiveSession:session];
// Open the session
[session openWithBehavior:FBSessionLoginBehaviorUseSystemAccountIfPresent
completionHandler:^(FBSession *session,
FBSessionState state,
NSError *error) {
if (completion ) {
completion(error == nil);
}
[self sessionStateChanged:session state:state error:error];
}];
Then athe app will show a message like {appname} would like to access your facebook account.
On logout I am clearing caches and tokens. Next time login the app directly access fb account without any confirmation. If I remove authorization of app from fb settings(in browser) and remove app from device, The app will ask for confirmation.
Can I do like the app asks {appname} would like to access your facebook account confirmation every time ?