On the JSLabs blog today, there's a new tutorial showing how you (yes you) can use the Facebook Developer's API to pull information from their systems.
The facebook API allows you to access profiles, friends, photos, and events. To access the API from an outside server, you need to go through the following steps:
- login to your Facebook Account
- get an account key
- Get the client library
- The php 5 library can be found here
He uses the PHP library to make the connection - a simple call to the API (complete with API key, the location of the interface, a secret key, and a session key to provide a unique identifier. The request made logs a user in (much have a valid Facebook account) and grabs: the count of the messages waiting, the number of posts to your wall, and a list of available photo albums.