The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php Create a test app on Facebook Developers, then create tests/FacebookTestCredentials.php from .