The Facebook SDK for PHP provides an interface to the Graph API.