Using Facebook Connect
Facebook Connect is an API that allows an application to log in and connect to Facebook. Once connected, users can use the API to access information about friends, photos, events, and more.
In this recipe, we will allow the user to access profile and event information and also post to his or her Facebook wall.