public function __construct($redirectUrl, $appId = null, $appSecret = null)
 {
     parent::__construct($redirectUrl, $appId, $appSecret);
     $this->rlAppId = '';
     $this->rlUserHash = '';
     $this->rlAccount = null;
     $this->rlStorageProvaider = null;
 }
 /**
  * Constructs a RedirectLoginHelper for a given appId and redirectUrl.
  *
  * @param string $redirectUrl The URL Facebook should redirect users to
  *                            after login
  * @param string $appId The application id
  * @param string $appSecret The application secret
  * @throws (\LoginException)
  */
 public function __construct($redirectUrl, $appId = null, $appSecret = null)
 {
     if (!empty($appId)) {
         $this->appId = $appId;
     } elseif ($appId = Config::get('api-foundation::fb_app_id')) {
         $this->appId = $appId;
     } else {
         throw new \LogicException('Facebook APP ID not set.');
     }
     if (!empty($appSecret)) {
         $this->appSecret = $appSecret;
     } elseif ($appSecret = Config::get('api-foundation::fb_app_secret')) {
         $this->appSecret = $appSecret;
     } else {
         throw new \LogicException('Facebook APP SECRET not set.');
     }
     FacebookSession::setDefaultApplication($this->appId, $this->appSecret);
     parent::__construct($redirectUrl, $this->appId, $this->appSecret);
 }