Created
May 6, 2011 04:25
-
-
Save ravikiranj/958444 to your computer and use it in GitHub Desktop.
Facebook App recoread object instantiation
This file contains 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
class fbrecoread{ | |
<?php | |
/* Private variables and Constants */ | |
const APP_ID = '212318288788000'; | |
const APP_SECRET = '7ae17a52b5f43df287327293644ff364'; | |
private $fb = null; | |
private $session = null; | |
public function __construct($args = array()){ | |
// Create our Application instance (replace this with your appId and secret). | |
$this->fb = new Facebook(array( | |
'appId' => self::APP_ID, | |
'secret' => self::APP_SECRET, | |
'cookie' => true, | |
)); | |
if(!$this->fb){ | |
echo "Unable to instantiate Facebook SDK"; | |
exit; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment