[英]Facebook connect API for iPhone: Logout - Login problem
I have a problem with FaceBooks API. 我的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. 我认为这与Cookie有关。 But while debugging i found that facebook IS clearing the cookies.
但是在调试时,我发现facebook正在清除cookie。 So i dont know where is the problem.
所以我不知道问题出在哪里。
Thanx for the help guys. 感谢您的帮助。
I got the same when I used [FBRequest requestForMe] in an active (as I think) session. 当我在活动的会话中使用[FBRequest requestForMe]时,我得到了相同的结果。 I had to add
我必须添加
[FBSession.activeSession close];
before [FBSession openActiveSessionWithPermissions:...] Now it works fine. 之前[FBSession openActiveSessionWithPermissions:...]现在可以正常工作。
试试[FBSession setSession:nil];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.