Ejemplo n.º 1
0
 protected function _getButtonUrl()
 {
     if (is_null($this->userInfo) || !$this->userInfo->hasData()) {
         return $this->client->createAuthUrl();
     } else {
         return $this->getUrl('socialconnect/facebook/disconnect');
     }
 }