How to stay logged into facebook?

So how do you do a facebook login if you login in once with facebook app and never have to open the facebook app again? Do store facebook id?

Currently, login tokens from Facebook are good for about 60 days.  Facebook doesn’t guarantee that it will be exactly 60 days.  I don’t know if that changes with the new SDK, but the current docs on http://developer.facebook.com says 60 days-- give or take.

When you call facebook.login() you should get a token that you can use over and over until it expires.

Rob

I have been playing around with facebook templates and they don’t seem to store the token in a txt. If i store the token how can I use it to login with out using the facebook.login() api. For example let just say I use facebook.login() once and it is work great, now i want to close the app completely, but then i get back in the app and I have to open the facebook app again in login i to facebook.

Edit: is the resason it is not storing because I am just using a test app?

It should be part of an event table that’s passed to the Facebook listener.  You would be responsible for storing it.

Rob

Currently, login tokens from Facebook are good for about 60 days.  Facebook doesn’t guarantee that it will be exactly 60 days.  I don’t know if that changes with the new SDK, but the current docs on http://developer.facebook.com says 60 days-- give or take.

When you call facebook.login() you should get a token that you can use over and over until it expires.

Rob

I have been playing around with facebook templates and they don’t seem to store the token in a txt. If i store the token how can I use it to login with out using the facebook.login() api. For example let just say I use facebook.login() once and it is work great, now i want to close the app completely, but then i get back in the app and I have to open the facebook app again in login i to facebook.

Edit: is the resason it is not storing because I am just using a test app?

It should be part of an event table that’s passed to the Facebook listener.  You would be responsible for storing it.

Rob