/** * WPSDFaceBook. */ function WPSDFaceBook() { parent::WPSDStats(); $form = new WPSDAdminConfigForm(); $this->user = $form->getWpsdFacebookUn(); //$this->username = $form->getWpsdFacebookLogin(); //$this->password = $form->getWpsdFacebookPassword(); //echo $this->username; //echo $this->password; $this->address .= $this->user; if ($this->key && $this->secret) { require_once dirname(__FILE__) . '/../api/facebook/php4_client/facebook.php'; $this->api = new WPSDFacebookAPI($this->key, $this->secret); } //$this->set(); if ($this->isOutdated()) { $this->set(); } else { $this->set_cached(); } }