Ejemplo n.º 1
0
 public static function getFB()
 {
     if (self::$fb) {
         return self::$fb;
     }
     $config = Zend_Registry::get(APPLICATION_CONFIG);
     $fb = new Facebook_Facebook(array('appId' => $config->facebook->appid, 'secret' => $config->facebook->appsecret, 'cookie' => true));
     self::$fb = $fb;
     return self::$fb;
 }