Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Getting started with the Facebook PHP SDK v4.1. Part b: Setting up the application.
// setup application using API keys and handlers
$fb = new Facebook\Facebook([
'app_id' => 'xxx',
'app_secret' => 'yyy',
'http_client_handler' => 'curl', // can be changed to stream or guzzle
'persistent_data_handler' => 'session' // make sure session has started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment