Take the 2-minute tour ×

I'm building a Phonegap app, and am using the Facebook Javascript API to log users in. My code is as follows:

 FB.login(function(response) {
     if (response.authResponse) {
     FB.api('/me', function(response) {
  } else {

Sure, this works fine for logging users in, but how can I KEEP them logged in, even after the app is closed?

share|improve this question
add comment

Your Answer



Browse other questions tagged or ask your own question.