Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start(); //Session should be active
- $app_id = '431555557031282'; //Facebook App ID
- $app_secret = '1a547fd5677f1b0a1547ceed3cdef664'; //Facebook App Secret
- $required_scope = 'public_profile, publish_actions, email'; //Permissions required
- $redirect_url = 'http://localhost/facebook-connect/'; //FB redirects to this page with a code
- //include autoload.php from SDK folder, just point to the file like this:
- require_once('facebook-php-sdk\src\facebook.php');
- $config = array(
- 'appId' => '431555557031282',
- 'secret' => '1a547fd5677f1b0a1547ceed3cdef664',
- 'fileUpload' => false, // optional
- 'allowSignedRequest' => false, // optional, but should be set to false for non-canvas apps
- );
- $facebook = new Facebook($config);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement