/**
  * construct FacebookStream object
  */
 function __construct($consumer_key, $consumer_secret, $agent)
 {
     /* Set Facebook key/secret */
     Services_Facebook::$apiKey = $consumer_key;
     Services_Facebook::$secret = $consumer_secret;
     /* Instantiate Services_Facebook */
     $this->api = new Services_Facebook();
     $this->agent = $agent;
 }
Exemple #2
0
 function Facebook($key, $secret, $appid, $agent, $session, $next)
 {
     Services_Facebook::$apiKey = $key;
     Services_Facebook::$secret = $secret;
     $this->api = new Services_Facebook();
     $this->agent = $agent;
     $this->appid = $appid;
     $this->api->sessionKey = $session;
     $this->next = $next;
 }
Exemple #3
0
 function Facebook($key, $secret, $appid, $agent, $session = false, $next)
 {
     Services_Facebook::$apiKey = $key;
     Services_Facebook::$secret = $secret;
     $this->api = new Services_Facebook();
     $this->agent = $agent;
     $this->appid = $appid;
     if (!$session) {
         $_SESSION['fb_session'] = $this->api->sessionKey;
     } else {
         $this->api->sessionKey = $session;
     }
     $this->next = $next;
 }
 protected function tearDown()
 {
     $this->instance = null;
     Services_Facebook::$apiKey = null;
     Services_Facebook::$secret = null;
 }