Skip to content

Instantly share code, notes, and snippets.

@MikeRogers0
Created June 10, 2012 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeRogers0/2907541 to your computer and use it in GitHub Desktop.
Save MikeRogers0/2907541 to your computer and use it in GitHub Desktop.
Making a simple Facebook Application
<?php
# Start by Defining everything the code needs to talk to facebook. Facebook provides these when you sign up.
define(YOUR_API_KEY, '');
define(YOUR_SECRET_CODE, '');
// Include the facebook API PHP classes.
require_once('facebook.php');
// Connect to facebook
$facebook = new Facebook(YOUR_API_KEY,YOUR_SECRET_CODE);
// Return everything facebook has sent to you.
echo '<pre>Debug:' . print_r($facebook,true) . '</pre>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment