while i was trying to integrate fbsdk(facebook) to my app ,it's login session working perfectly.But while i log out from mp app,it does show log out actionsheet and i can logout it easily.But when i try to login again to the facebook it goes directly to the facebook confirmation page instead of going to the login page details.Hope your help.
codes i used for logout.
FBSDKLoginManager *manager = [[FBSDKLoginManager alloc] init];
[FBSDKAccessToken setCurrentAccessToken:nil];
[FBSession.activeSession closeAndClearTokenInformation];
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for(NSHTTPCookie *cookie in [storage cookies])
{
NSString *domainName = [cookie domain];
NSRange domainRange = [domainName rangeOfString:@"facebook"];
if(domainRange.length > 0)
{
[storage deleteCookie:cookie];
}
}
[manager logOut];

If you want to REVOKE all permissions, then you must do this:
https://developers.facebook.com/docs/facebook-login/permissions/v2.4
But, even this doesn't really guarantee that your app will be removed from access to the user through Facebook, again, what you are doing is basically deactivating an active token with the facebook logout, but YOU ARE NOT removing permissions for this user through facebook.
This is sort of crappy if you really want to remove users or if users want to remove YOUR app from their Facebook account, but this as far as you can go UNLESS the user themself removes permissions in their facebook account manually, here's what facebook has to say about this: