Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto login with FBConnect on iphone

I'm currently trying to add a facebook functionnality to my iPhone game (Tikitic, on the appstore! :))

It seems to be quite easy to make a facebook connexion by invoking the FBLoginDialog dialog. But I would like, with a login and a pass saved in the userdefaults, connect automatically to my account.

Does it exist a methode like [fbsession loginWithName:@"mylog" andPass:@"mypass"] ?

Thanks a lot

like image 582
Martin Avatar asked Jul 29 '09 10:07

Martin


1 Answers

You can call:

[myFBSession resume];

on your session instance. I think that the session details are persisted by the FBConnect code, and you don't have to worry about that.

Also, users won't be happy if you store their Facebook login details within your app without encrypting them. This is why the FBSession is used, so you don't have to save those details.

like image 177
Jasarien Avatar answered Sep 18 '22 06:09

Jasarien