There are two main steps to the authentication process, when working with Facebook and its ActionScript 3 SDK:
1. The first step is to initialize the library, passing in a few application settings, such as the API Key, which will then be used to find any active Facebook sessions that our application can use.
2. The next step is manually logging in to Facebook and creating a new session, although this is optional, depending on whether or not the previous initialization was successful.
In this recipe, we're going to explore the simple tasks of initializing the Facebook ActionScript 3 SDK and logging in to Facebook, for a web-based Flash Player application.