5     include_once getShopBasePath() . 
"core/facebook/facebook.php";
 
   16 class oxFb 
extends Facebook
 
   23     protected $_blIsConnected = null;
 
   31     public function __construct()
 
   35         $aFbConfig[
"appId"]  = $oConfig->getConfigParam( 
"sFbAppId" );
 
   36         $aFbConfig[
"secret"] = $oConfig->getConfigParam( 
"sFbSecretKey" );
 
   37         $aFbConfig[
"cookie"] = 
true;
 
   39         BaseFacebook::__construct( $aFbConfig );
 
   49     public static function getInstance()
 
   59     public function isConnected()
 
   63         if ( !$oConfig->getConfigParam( 
"bl_showFbConnect" ) ) {
 
   67         if ( $this->_blIsConnected !== null ) {
 
   68             return $this->_blIsConnected;
 
   71         $this->_blIsConnected = 
false;
 
   72         $oUser = $this->getUser();
 
   75             $this->_blIsConnected = 
false;
 
   76             return $this->_blIsConnected;
 
   79         $this->_blIsConnected = 
true;
 
   82         } 
catch (FacebookApiException $e) {
 
   83             $this->_blIsConnected = 
false;
 
   86         return $this->_blIsConnected;
 
  100     protected function setPersistentData($key, $value)
 
  102         if (!in_array($key, self::$kSupportedKeys)) {
 
  103             self::errorLog(
'Unsupported key passed to setPersistentData.');
 
  107         $sSessionVarName = $this->constructSessionVariableName($key);
 
  119     protected function getPersistentData($key, $default = 
false)
 
  121         if (!in_array($key, self::$kSupportedKeys)) {
 
  122             self::errorLog(
'Unsupported key passed to getPersistentData.');
 
  126         $sSessionVarName = $this->constructSessionVariableName($key);
 
  138     protected function clearPersistentData($key)
 
  140         if (!in_array($key, self::$kSupportedKeys)) {
 
  141             self::errorLog(
'Unsupported key passed to clearPersistentData.');
 
  145         $sSessionVarName = $this->constructSessionVariableName($key);