how to resume facebook session key after user change facebook password

Posted by aviavi on Stack Overflow See other posts from Stack Overflow or by aviavi
Published on 2010-06-07T12:26:58Z Indexed on 2010/06/08 18:02 UTC
Read the original article Hit count: 323

hey

i have iphone application that using facebook connect. users login to the iphone application using facebook connect. and then i receive their sessionKey back to my server, and i am using the sesssionkey to post actions to users wall.

the iphone application keeps the user logged in allways. which means that every times the user will open the application, he will not need to make login again.

the problem is that, when the user change his facebook password the user sessionKey also changes.

and when the user enter to my iphone applicaiton, the user is shown as loggedin, and then i recieve to my server the user old sessionkey, and when i try to post to the user wall facebook tells me that the session is inavlid.

it is ok because the user change his password and the session changes too.

my question is how can i check in the iphone if the session key has changed ? and if it changes to promote the user to make login again.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk