function FBAutopost::__construct in Facebook Autopost 7
File
- class/
FBAutopost.php, line 127
Class
- FBAutopost
- API class to handle common actions when autoposting This class uses FBAutopostException for error handling. Severity is passed resusing watchdog severity (See: http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watch...)
Code
function __construct($conf = array()) {
if (!isset($conf['appId'])) {
$conf['appId'] = variable_get('fb_autopost_app_id', '');
}
if (!isset($conf['secret'])) {
$conf['secret'] = variable_get('fb_autopost_app_secret', '');
}
$this->destination = NULL;
$this->retry = TRUE;
// Delete any previously saved publication in the session.
$this
->getSession()
->removePublication();
parent::__construct($conf);
}