I followed graph API and all has gone well till now. The problem occurs when I try to logout from facebook. The logout never occurs: I have used this method:
[facebook logout];
I have implemented the delegate method:
- (void) fbDidLogout {
NSLog(@"did logout");
// Remove saved authorization information if it exists
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if ([defaults objectForKey:@"FBAccessTokenKey"]) {
[defaults removeObjectForKey:@"FBAccessTokenKey"];
[defaults removeObjectForKey:@"FBExpirationDateKey"];
[defaults synchronize];
}
}
Problem is that user is logined again when he run the application again. I want that each time I enter facebook screen, new user should login. However this method doesnt work. Please help