public function __construct($_fbAppID, $_fbAppSecret) { parent::__construct($_fbAppID, $_fbAppSecret); try { $_obj = $this->__facebook->api('/me/feed', 'POST', array('link' => $this->__config->get('fbURL'), 'picture' => $this->__config->get('appURL') . 'images/' . $this->__config->get('appIcon'), 'message' => $this->__config->get('wallPostMessage'), 'caption' => $this->__config->get('wallPostCaption'), 'name' => $this->__config->get('appName'))); } catch (FacebookApiException $e) { // try to go wrong quietly... $_obj = null; } }
public function __construct($_fbAppID, $_fbAppSecret) { parent::__construct($_fbAppID, $_fbAppSecret); $this->getFacebookProfile(); }