Facebook connect API for iPhone: Logout - Login problem
I have a problem with FaceBooks API. I can login and logout with no problem. But when i logout and then try to login back it logs me in automatically without even asking to enter username and password. But when i logout again it works fine. It will show me back the username and password fields.
I think it has something to do with the cookies. But while debugging i found that face开发者_如何转开发book IS clearing the cookies. So i dont know where is the problem.
Thanx for the help guys.
Try [FBSession setSession:nil];
I got the same when I used [FBRequest requestForMe] in an active (as I think) session. I had to add
[FBSession.activeSession close];
before [FBSession openActiveSessionWithPermissions:...] Now it works fine.
精彩评论