Created
June 10, 2012 22:29
-
-
Save MikeRogers0/2907541 to your computer and use it in GitHub Desktop.
Making a simple Facebook Application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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