/** * Initialize Facebook SDK and redirect helper */ public function init() { parent::init(); \Facebook\FacebookSession::setDefaultApplication($this->getSettings()->getId(), $this->getSettings()->getSecret()); }
/** * Initialization VKontakte SDK */ public function init() { parent::init(); $this->_vk = new Sdk\VK($this->getSettings()->getId(), $this->getSettings()->getSecret()); }