Below is the process you need to follow when integrating with facebook through AS3 API's:
Known issues:
1. popup blockers will block facebook popups if it is not call through a click handler. You can ripple the dispatch a few classes before it gets blocked.
2. IE needs a channel.html page.
How To:
1. Initialise the Facebook API on load.
2. on share button click, check login and dispatch the login command if required.
3. on login complete call the post command.