public function logout()
 {
     $Session = new Session();
     Phalanx::loadClasses('SocialNetwork');
     SocialNetwork::unlink_account($Session->user->id, INSTAGRAM);
     Request::redirect(HOST . 'perfil/configuracoes');
 }
 public function logout()
 {
     Phalanx::loadController('LoginController');
     $loginController = new LoginController();
     $loginController->checkStatus();
     if ($this->session->accept_token != REQUEST_TOKEN) {
         Request::redirect(HOST . 'login');
     }
     SocialNetwork::unlink_account($this->session->user->id, SocialNetwork::FACEBOOK);
     Request::redirect(HOST . 'perfil/configuracoes');
 }
 public function logout()
 {
     Phalanx::loadClasses('SocialNetwork');
     SocialNetwork::unlink_account($this->session->user->id, NERDTRACK);
     Request::redirect(HOST . 'perfil/configuracoes');
 }