library/Garp/Social/Facebook.php
protected function _getClient(array $config) {
        $ini = Zend_Registry::get('config');
        $type = !empty($ini->store->type) ? $ini->store->type : 'Session';
        if ($type == 'Cookie') {
            return new Garp_Social_Facebook_Client($config);
        } else {
            require_once APPLICATION_PATH.'/../garp/library/Garp/3rdParty/facebook/src/facebook.php';
            $facebook = new Facebook($config);
            return $facebook;
        }
    }
protected function _getClient(array $config) {
        $ini = Zend_Registry::get('config');
        $type = !empty($ini->store->type) ? $ini->store->type : 'Session';
        if ($type == 'Cookie') {
            return new Garp_Social_Facebook_Client($config);
        } else {
            require_once APPLICATION_PATH.'/../garp/library/Garp/3rdParty/facebook/src/facebook.php';
            $facebook = new Facebook($config);
            return $facebook;
        }
    }
protected function _getClient ( array $ config ) { $ ini = Zend_Registry :: get ( 'config' ) ; $ type = ! empty ( $ ini -> store -> type ) ? $ ini -> store -> type : 'Session' ; if ( $ type == 'Cookie' ) { return new Garp_Social_Facebook_Client ( $ config ) ; } else { require_once APPLICATION_PATH . '/../garp/library/Garp/3rdParty/facebook/src/facebook.php' ; $ facebook = new Facebook ( $ config ) ; return $ facebook ; } }
Create Facebook SDK
@param Array $config
@return Facebook
Create Facebook SDK