private function authenticateUser() { global $wgServer; $twitterObj = new EpiTwitter(WH_TWITTER_TIF_CONSUMER_KEY, WH_TWITTER_TIF_CONSUMER_SECRET); $twitterObj->setCallback($wgServer . '/' . TWITTER_REPLIER_SPECIAL_PAGE); return json_encode(array('authorizationUrl' => $twitterObj->getAuthorizationUrl())); }