I develope app with facebook sdk 3.11. and i don't know how to logout FBWebDialogs .my code:

- (void) logoutFacebook{ NSLog(@"Close session"); [[FBSession activeSession]close]; [[FBSession activeSession] closeAndClearTokenInformation]; for(NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) { if([[cookie domain] isEqualToString:@"facebook"]) { [[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie]; } }}but when i reopen share dialog , it alway use old account. How to logout ?


View Solution