I am not sure if this is an issue with twitter or oauth module, please move if it belongs in the oauth queue.

I am experiencing a problem when I go to add a twitter account for my user, I am sent to the url:

http://twitter.com/oauth/authorize?oauth_token=

Without the token on the end that makes this work. I have seen other users report similar experiences here: http://drupal.org/node/404470#comment-3491030 and http://drupal.org/node/956722

I have one server with the module working properly, but on one of my server (which I built) I get the blank oauth_token. Someone in IRC suggested this could be the lack of curl- but that is not the case. Based on the other posts and my experience having twitter+oauth work on one server and not the other I am thinking that my server is not properly configured. I have attached a portion of phpinfo() screenshot.

Thanks!

CommentFileSizeAuthor
phpinfo.JPG80.84 KBRockSoup

Comments

RockSoup’s picture

Status: Active » Closed (works as designed)

Ok, solved this bugger.

A little further down in the above thread I saw this comment: http://drupal.org/node/404470#comment-3586336

Which correctly identified that if the server time is off you will not be able to generate the oauth token. I used this guide to correct my server time with NTP: http://codeghar.wordpress.com/2007/12/06/manage-time-in-ubuntu-through-c...

and it now works.

Marking this issue as fixed.

abraham’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Closed (works as designed) » Active

I'm going to change this to a bug report. Users should never get sent to twitter.com with an empty oauth_token.

steinmb’s picture

Title: Server Requirements? » Make sure oauth_token is not empty before redirecting user to Twitter.com
Version: 6.x-3.0-beta3 » 6.x-3.x-dev

We prob. need to retest this issue. Any takers?

abulte’s picture

Version: 6.x-3.x-dev » 7.x-3.2

I can confirm this behavior on 7.x-3.2 : when the date is far in the past on the server (VM in my case), oauth_token is empty and you get redirect to twitter.com anyway.

dddave’s picture

Status: Active » Closed (won't fix)

This version is no longer supported.