FBConnect for iPhone: sessionDidNotLogin, sessionDidLogout, session didLogin not called the second t

Posted by Irene on Stack Overflow See other posts from Stack Overflow or by Irene
Published on 2010-04-15T14:00:31Z Indexed on 2010/04/15 14:03 UTC
Read the original article Hit count: 581

Filed under:
|
|

My problem is very similar to this question, however I am posting a new one, as the answer to the aforementioned does not seem to solve my problem.

I have a multiview application - the first view is where the user logs in to Facebook, and the second where he picks an image and uploads it there. The first time the app runs, everything works fine, however if I return to the login view and press logout, then any calls to sessionDidNotLogin, sessionDidLogout or session didLogin don't seem to work.

I found out that the first time, if I NSLog(@"%@",session.delegates); I have 2; my LoginViewController and the FBLoginButton. However, apart from that first time, the same log prints only the LoginViewController and not the FBLoginButton. I guess this is connected somehow, but I don't know how to solve it.

Do I have to manually add the FBLoginButton to the session delegates, or I'm doing something else wrong here?

Thank you for any help/suggestion.

© Stack Overflow or respective owner

Related posts about fbconnect

Related posts about iphone