basantsahoo / facebook-actionscript-api

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

Facebook Infinite Session #310

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Anyone have any idea of how to create a infinite session so the user just logs 
in one time once the application has loaded and they remain logged in?

I've tried storing e reseting this informations:

var sessionData: Object = 
{
    access_token: "",
    expires: "",
    secret: "",
    session_key: "",
    sig: "",
    uid: ""
};

Facebook.init(APP_ID, onInit, {session: sessionData}, "ACCES_TOKEN");
And still when I try:

Facebook.login(handler, options); 
It asks for it again, any insights please?

Original issue reported on code.google.com by gmac...@gmail.com on 31 May 2011 at 12:19

GoogleCodeExporter commented 8 years ago
After some testing, it seems that this will work as expected if you call init() 
twice. For the first time, it will not return the session confirming your 
logged-in status but will the second time. Afterwards, calling login() will no 
longer bring up the popup.

Original comment by edwar...@gmail.com on 31 May 2011 at 10:34

GoogleCodeExporter commented 8 years ago

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