Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:50:44+00:00 2026-06-04T23:50:44+00:00

I am using as3-fb-api which connects to js-api for a flash app. it works

  • 0

I am using as3-fb-api which connects to js-api for a flash app. it works fine: login, get friends profile pics, logout, repeat.

BUT if the user opens a second browser tab pointed to facebook.com, and uses it to logout of facebook, then returns to my app, and hits the logout button which calls Facebook.logout(), the problems begin.

my app listens for:

Facebook.addJSEventListener( 'auth.statusChange'       , om__statusChange       ) ;
Facebook.addJSEventListener( 'auth.authResponseChange' , om__authResponseChange ) ;
Facebook.addJSEventListener( 'auth.login'              , om__login_noticed      ) ;
Facebook.addJSEventListener( 'auth.logout'             , om__logout_noticed     ) ;

Ideally I would expect that the Facebook.logout() would call the js, which would ajax the fb servers, to discover that the user is already out, and return the message for the app to handle.

In my firebug debugger, I see that the facebookjsbridge: logout function is called, but its callback, FBAS.handleUserLogout, is not called, and none of the eventlisteners are called either.

So what is the appropriate way to synch my app with the servers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:50:46+00:00Added an answer on June 4, 2026 at 11:50 pm

    after several days of trying various techniques, this is what I have come up with BUT IT IS HACKish

    the problem was: if user is logged into my facebook app via as3-fb-api:Facebook.login(…), and then goes to another browser tab, opens facebook.com there, logs out there, and then returns to my app and messes with it, my app becomes out-of-synch with facebook.

    So to solve this issue I now have any and all Facebook.api calls to look for this failure:

    { error , [object Object] , object
        { code , 190 , number
          message , Error validating access token: The session is invalid because the user logged out. , string
          type , OAuthException , string
          error_subcode , 467 , number          
         }
    }
    // I may discover later that there are other types of failures 
    //    that I will need to catch as well.
    

    If any calls return with this error, the app reloads itself (I use a External-Interface call to js to handle the reload).

    Furthermore, I have added a routine to my LOGOUT button to use this system. Originally when a user pressed the LOGOUT button, I would simply call Facebook.logout(…), but that fails IF the user has already logged out … the Facebook.logout(…) does not even call the callback with an error message, so the app has no means to discover the out-of-synch problem.

    So now when a user presses the LOGOUT button, the app first calls Facebook.api(“/me/” , … ). WHY? because that api call WILL return an error message (or success message) even if the user has logged out via another browser tab. And if this api call returns a failure message/object, then I divert the app to the reload phase, otherwise I continue, normally, with Facebook.logout(…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple AS3 app that draws few circles using drawing api
I'm using the Facebook AS3 API and I'm having trouble sorting friends by relationship_status.
Is it possible to call a web service from within Flash (using AS3)? Or
I'm using Box2D (the AS3/Flash version, if it matters) and I'm trying to calculate
How do I load library objects by string list using Flash and AS3? I
My Flash (AS3/AIR) application is currently using a slightly unusual architecture (for a Flash
I'm building a social media app in Flash (AS3) that is tightly integrated with
Is it possible to do the following using AS3 and Flash CS3 IDE? The
I have a Javascript API, which should be usable with GWT and Flex. Using
I wish to upload from my Flash Application (AS3) to imageshacks XML API. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.