Skip to content

Instantly share code, notes, and snippets.

@janhalfar
Created July 7, 2011 22:32
Show Gist options
  • Save janhalfar/1070698 to your computer and use it in GitHub Desktop.
Save janhalfar/1070698 to your computer and use it in GitHub Desktop.
<?php
// facebook API usage example from
// http://www.joeyrivera.com/2010/facebook-graph-api-app-easy-w-php-sdk/
require_once ‘library/facebook.php’;
$app_id = "yourappid";
$app_secret = "yourappsecret";
$facebook = new Facebook(array(
‘appId’ => $app_id,
‘secret’ => $app_secret,
‘cookie’ => true
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment