kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Flash FaceBook Integration - Keeping User Session Logged #309

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Logging into facebook, openning the appliction
2. Removing Cookies
3. Open the application asks to log it again

Hi, i'm having some problem that every time i clean up my cookies, my softwares 
doesnt manage to stay logged and keep my users info and tells that the user 
needs to log in again.

I've seen some softwares that you only have to allow then and then you dont 
need to log in anymore and you can clean up your cookies, like twitter app on 
facebook. Any ideas of how to do this?

First i asked for an extra permission "offline_access", is it necessary? Then i 
got the user session key and stored it. But how do i use it to log again 
automatically? Any ideas and specially some code would be helpful.

Thank you!

Original issue reported on code.google.com by gmac...@gmail.com on 30 May 2011 at 8:49

GoogleCodeExporter commented 9 years ago
ya you should pass that "offline-access" permission in to keep your session 
infinite. Try saving off the access_token in the FacebookSession object, and 
then passing that in on your init call (Facebook.init(APP_ID, options, 
ACCESS_TOKEN)). If that doesn't work, try also saving off your session object, 
and passing that into the options object in init call (Facebook.init(APP_ID, 
{session:mySession}, ACCESS_TOKEN)).

Original comment by rovertn...@gmail.com on 3 Jun 2011 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 11 Oct 2011 at 10:53