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

  • Home
  • SEARCH
  • 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 3678132
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:18:17+00:00 2026-05-19T03:18:17+00:00

I am calling com.facebook.graph.Facebook.init(APP_ID, loginHandler); to log in to facebook using the actionscript api

  • 0

I am calling
com.facebook.graph.Facebook.init(APP_ID, loginHandler);

to log in to facebook using the actionscript api (as explained in this tutorial: http://www.adobe.com/devnet/facebook/articles/flex_fbgraph_pt4.html). But, it does not seem to do anything.

Looking at the API source, the only call that is made to JS is
ExternalInterface.call(‘FBAS.init’, JSON.encode(options));

The two javascript libraries which are required are:

http://connect.facebook.net/en_US/all.js
FBJSBridge.js

However, i cannot find any reference to FBAS in these libraries. Am I even using the correct libraries? Is there another reason I have missed as to why FBAS doesnt exist? or even why calling Facebook.init() does nothing?

  • 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-05-19T03:18:17+00:00Added an answer on May 19, 2026 at 3:18 am

    FBJSBridge.js has been embedded in the SDK. Look at com.facebook.graph.core.FacebookJSBridge.as, and you’ll see that the entire block of javascript that was FBJSBridge.js is tacked onto the ExternalInterface in com.facebook.graph.Facebook.as ‘s constructor.

    I have been struggling with this all day. I have been watching the http GET spawned by Facebook.init(), and it looks like it just waits until it times out, at which point another GET is spawned. It never comes back normally. I tried the APPID, the APIKEY in there and all sort of combinations of parameters, but I never saw it come back. I have to conclude that’s how its meant to work. If not, then that’s how it does work. :-/

    Anyway, you’ll see inside FBAS in that JS block in FacebookJSBridge.as that init subscribes to the “auth.sessionChange” event which triggers Facebook.handleSessionChange(). You can see that is where your callback is called. The trick is that that is what gets called anytime the sessionChanges. So even if the next time that event fires isn’t because of a response from FB.init(), your callback will still get called at that point.

    If you set your own handler for “auth.sessionChange” before you call Facebook.init(), and you set “cookie” to true then after a cookie has been created you’ll get a sessionChange event firing right after you call init. Init’s callback still doesn’t get called though because the GET never gets a RESPONSE.

    Facebook.addJSEventListener("auth.sessionChange", onSessionChange);
    Facebook.init(_appID, onInitFacebookConnect, 
          {cookie: true, 
           appId: _appID, 
           perms: "user_birthday,read_stream,publish_stream"});
    

    The examples that you’ll find in that tutorial may work, but are not what you’ll want to use when actually putting an app together. Otherwise you are always going to click a button to trigger fbconnect. It looks like oauth2 will be the way to get the desired behavior of not needing to click on a button each time to “connect”. You can get the sessionkey from oauth2 and then use the Flash/Facebook GRAPHSDK or JS depending on whichever is most convenient for what you are trying to do.

    This might help:
    http://blog.yoz.sk/2010/05/facebook-graph-api-and-oauth-2-and-flash/

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

Sidebar

Related Questions

I use this Facebook Login Button code: <div id=fb-root></div> <script src=http://connect.facebook.net/en_US/all.js></script> <script> FB.init({ appId
In my last development environment, I was able to easily interact with COM, calling
when calling a SSIS package (C# app) using LoadFromSqlServer, does the user account have
I am getting a 'swf is null' in the Firebug console when calling Facebook.login(handleLogin,
I have a problem. I want to use the facebook api and make a
I'm using AMFPHP, and wrote a small function in php to post in facebook
Calling Validate() on an XmlDocument requires passing in a ValidationEventHandler delegate. That event function
Calling all C macro gurus... Is there any way to write a C macro
When calling CoInitializeEx , you can specify the following values for dwCoInit : typedef
When calling a remote service (e.g. over RMI) to load a list of entities

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.