Skip to content

Instantly share code, notes, and snippets.

View netbuddha's full-sized avatar

David Nickel netbuddha

View GitHub Profile
@richardpilgrim
richardpilgrim / logout.php
Last active December 24, 2015 17:59
Facebook PHP Example Logout Code
<?php
require '../src/facebook.php';
// Create our Application instance (replace this with your appId and secret).
$facebook = new Facebook(array(
'appId' => '<appid>',
'secret' => '<appsecret>',
));
$user = $facebook->getUser();