Skip to content

Instantly share code, notes, and snippets.

@ravikiranj
Created May 6, 2011 04:25
Show Gist options
  • Save ravikiranj/958444 to your computer and use it in GitHub Desktop.
Save ravikiranj/958444 to your computer and use it in GitHub Desktop.
Facebook App recoread object instantiation
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