public function tokenTwitterkAction() { $this->view->disable(); $auth = new TwitterAuth($this->config->twitter); list($uid, $token, $user) = $auth->authorize(); if (isset($token) && is_object($token)) { //Edit/Create the user $object = Users::findFirstByUid($uid); $this->commonOauthSave($uid, $user, $token, $object, 'Facebook'); } else { $this->flashSession->error('Invalid Google response. Please try again'); return $this->response->redirect(); } }