Skip to content

Instantly share code, notes, and snippets.

<?php
// require the Composer autoload
require 'vendor/autoload.php';
// start session
session_start();
// init app with app id and secret
Facebook\FacebookSession::setDefaultApplication('APP_ID', 'APP_SECRET');