Skip to content

401 Error Response - RESOLVED #7

@ghost

Description

Hi Elliot,
I am trying out this library but have run into an issue.
What I did:
-I dropped the files into a fresh CI reactor install,
-I entered my consumer info into the config/tweet_config.php file
-I went to the tweet_test url,
-it sent me to twitter to authenticate but it had an error page that the tokens were already used,
-I noticed that there was no value for the oauth_token parameter in the querystring,
-I dug into the code and tried to find why there was no oauth_token being received,
-I tracked the code to where the response comes back from twitter, line 205 of /libraries/tweet.php,
-I put this line in before it die(var_dump($response));
-After re running the request I get the dump of a tweetResponseOauth object that has a 401 error code and this message "Failed to validate oauth signature and token"

I hit google looking for help and turned up nothing except that it could be the server time not accurate enough, I checked the server time and it is accurate.

I am at a loss to figure out the problem and it happens on both my home server and my production server, any assistance would be appreciated.

-Luke

UPDATE: Alright, after a few days away from the code, I came back to try again. I figured out the problem pretty much straight away... I skipped a step in the installation instructions, so this is all my bad, sorry.

To have your application register with twitter as a browser app you MUST supply a callback url, failure to enter will will revert your selection to a client app and will cause the error I got.

My apologies to anyone who might have looked into this and I promise that next time I will RTFM... properly :P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions