Beispiel #1
0
 /**
  * Return the Facebook client object
  *
  * @return Facebook
  */
 public static function getClient()
 {
     if (!isset(self::$client)) {
         // lazy load to keep memory low
         require_once 'facebook.php';
         // get the configuration
         $config = getConfiguration('facebook');
         // facebook client
         self::$client = new No_Cookie_Facebook($config['api_key'], $config['api_secret']);
     }
     return self::$client;
 }