FBJSBridge.js is built into the SDK. Take a look at com.facebook.graph.core.FacebookJSBridge.as and you will see that the entire javascript block, which was FBJSBridge.js, is bound to the ExternalInterface in the com.facebook.graph.Facebook.as constructor.
I struggled with this all day. I watched the http GET generated by Facebook.init () and it looks like it just waits until the time runs out, and at that moment another GET appears. He never returns normally. I tried APPID, APIKEY and all kinds of combinations of parameters, but I never saw it return. I must conclude that it means working. If not, how does it work .: - /
In any case, you will see inside FBAS in this JS block in FacebookJSBridge.as, which triggers a subscription to the event "auth.sessionChange", which calls Facebook.handleSessionChange (). You can see that the callback is being called here. The trick is that this is what sessionChanges is called at any time. Therefore, even if the next time this event is not triggered due to a response from FB.init (), your callback will still be called to this point.
If you set your own handler for "auth.sessionChange" before you call Facebook.init (), and you set the cookie to true, after the cookie is created, you will receive a sessionChange event, starting to call you init. The initial call has not yet been called because the GET never receives a RESPONSE.
Facebook.addJSEventListener("auth.sessionChange", onSessionChange); Facebook.init(_appID, onInitFacebookConnect, {cookie: true, appId: _appID, perms: "user_birthday,read_stream,publish_stream"});
The examples you find in this tutorial may work, but not what you want to use when co-creating the application. Otherwise, you will always press the button to call fbconnect. It seems that oauth2 will be a way to get the desired behavior when you do not need to press a button each time to "connect". You can get the sessionkey from oauth2 and then use Flash / Facebook GRAPHSDK or JS depending on what is most convenient for what you are trying to do.
This may help: http://blog.yoz.sk/2010/05/facebook-graph-api-and-oauth-2-and-flash/