dongtong0796 2013-10-08 12:51
浏览 7

too long

I'm using oauthclient to add a twitter login to my codeigniter project but it stops working at the "connect" function at "Oauthclient" library and I don't know exactly why ! here's the line where interpreter stops at :

                $oauth = new OAuth($this->consumerKey, $this->consumerSecret);

and here's the "connect" function :

 function connect() {

    if ($this->_oAuthVersion == 1) {

        try {

            $oauth = new OAuth($this->consumerKey, $this->consumerSecret);

            $request_token_info = $oauth->getRequestToken($this->_oAuthRequestTokenUrl, $this->responseUrl);
            if(!empty($request_token_info)) {
                $this->ci->session->set_userdata("oauth_token_secret", $request_token_info['oauth_token_secret']);
                header("Location: ".$this->_oAuthRedirectUrl.$request_token_info['oauth_token']);
            } else {
                print "Failed fetching request token, response was: " . $oauth->getLastResponse();
            }
        } catch(OAuthException $E) {
            // TODO: Handle exceptions in a better way
            // print_r($E);
            // echo "Response (RequestToken): ". $E->lastResponse . "
";
        }
    } else {
        // If oAuth v2, we must be sure the url's are correctly poppulated
        // therefor, set the service type again
        $this->setService($this->serviceType);
        header("Location: ".$this->_oAuthRedirectUrl);
    }
}

I need your help , please.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 对于这个问题的解释说明
    • ¥200 询问:python实现大地主题正反算的程序设计,有偿
    • ¥15 smptlib使用465端口发送邮件失败
    • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
    • ¥15 对于squad数据集的基于bert模型的微调
    • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
    • ¥20 steam下载游戏占用内存
    • ¥15 CST保存项目时失败
    • ¥20 java在应用程序里获取不到扬声器设备
    • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。