You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@lwcallaghan If the URL in the application settings on Twitter aren't the same as your testing environment could it make this Library not work? Example: I have an app that I'm building at myapp.com and when I'm developing I have dev.myapp.com - will that cause problems?
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
The text was updated successfully, but these errors were encountered: