5     include_once getShopBasePath() . 
"core/facebook/facebook.php";
 
   18 class oxFb 
extends Facebook
 
   26     protected $_blIsConnected = null;
 
   34     public function __construct()
 
   38         $aFbConfig[
"appId"] = $oConfig->getConfigParam(
"sFbAppId");
 
   39         $aFbConfig[
"secret"] = $oConfig->getConfigParam(
"sFbSecretKey");
 
   40         $aFbConfig[
"cookie"] = 
true;
 
   42         BaseFacebook::__construct($aFbConfig);
 
   50     public function isConnected()
 
   54         if (!$oConfig->getConfigParam(
"bl_showFbConnect")) {
 
   58         if ($this->_blIsConnected !== null) {
 
   59             return $this->_blIsConnected;
 
   62         $this->_blIsConnected = 
false;
 
   63         $oUser = $this->getUser();
 
   66             $this->_blIsConnected = 
false;
 
   68             return $this->_blIsConnected;
 
   71         $this->_blIsConnected = 
true;
 
   74         } 
catch (FacebookApiException $e) {
 
   75             $this->_blIsConnected = 
false;
 
   78         return $this->_blIsConnected;
 
   92     protected function setPersistentData($key, $value)
 
   94         if (!in_array($key, self::$kSupportedKeys)) {
 
   95             self::errorLog(
'Unsupported key passed to setPersistentData.');
 
  100         $sSessionVarName = $this->constructSessionVariableName($key);
 
  112     protected function getPersistentData($key, $default = 
false)
 
  114         if (!in_array($key, self::$kSupportedKeys)) {
 
  115             self::errorLog(
'Unsupported key passed to getPersistentData.');
 
  120         $sSessionVarName = $this->constructSessionVariableName($key);
 
  133     protected function clearPersistentData($key)
 
  135         if (!in_array($key, self::$kSupportedKeys)) {
 
  136             self::errorLog(
'Unsupported key passed to clearPersistentData.');
 
  141         $sSessionVarName = $this->constructSessionVariableName($key);