Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8913377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:26:45+00:00 2026-06-15T04:26:45+00:00

I am doing the login using twitter in my zend framework application. But after

  • 0

I am doing the login using twitter in my zend framework application. But after authenticating from twitter it showing the following error :

Message:Could not retrieve a valid Token response from Token URL: /oauth/access_token?oauth_consumer_key=xxxxxxxxxxxxxxx&oauth_nonce=xxxxxxxxxxxxxxxxxxxx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1352270857&oauth_token=xxxxxxxxxxxxx&oauth_version=1.0
&oauth_verifier=xxxxxxxxxxxxxxxxxxxxx&oauth_signature=wv5gdop77NA9BeZI7ilQcEFsqGH8CeR4%3D Invalid / expired Token

Following is my code :

    public function twittercallbackAction() {
            $path = realpath(APPLICATION_PATH . '/../library/');
            set_include_path($path);
            $config = array(
                "callbackUrl" => "http://" . $_SERVER['HTTP_HOST'] . "/register/twittercallback",
                "siteUrl" => "http://twitter.com/oauth",
                "consumerKey" => "xxxxxxxxxxxxxx",
                "consumerSecret" => "xxxxxxxxxxxxxxxxxxxx"
            );

            $consumer = new Zend_Oauth_Consumer($config);
            if (!empty($_GET) && isset($_SESSION['TWITTER_REQUEST_TOKEN'])) {            
                $token = $consumer->getAccessToken($_GET, unserialize($_SESSION['TWITTER_REQUEST_TOKEN']));
                // Now that we have an Access Token, we can discard the Request Token
                // get users timeline            
                // $_SESSION['TWITTER_REQUEST_TOKEN'] = null;
            } else {
                // Mistaken request? Some malfeasant trying something?
                exit('Invalid callback request. Oops. Sorry.');
            }
}

I am searching this issue on google but not getting any solution.

How can I deal with this issue.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:26:46+00:00Added an answer on June 15, 2026 at 4:26 am

    Finally I solved it myself…. 🙂

    The problem was twitter updated their api url:

    From

    http://twitter.com/statuses/user_timeline.json? 
    

    To

    https://api.twitter.com/1/statuses/user_timeline.json?
    

    and it gets fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i am using zend framework and doing one login example with database...i am
for the page I am doing needs a login authentication using Twitter (using tweetphp
I am doing a login application ( taken from here ) and basically, i
blahNow I am doing an ANdroid application.In my app I have to login using
I have created a login page at www.mywebsite.com/members/login I'm using Zend Framework, Now I
Im doing an iphone application where i login using OAuth apis of the website
I am doing a application that deals with where Users can login and see
i am doing one small application , wheich have login functionality, in the user
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing my first SL4 MVVM RIA based application and i ran into the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.