Here's what I did.

Downloaded Twitter 7.x-3.0-beta2
Downloaded OAuth 7.x-3.0-alpha1 (I realize it says 2.0 is better, but there is NO 2.0 for Drupal 7)
Installed both modules & all submodules.
I created my app on Twitter https://dev.twitter.com/apps/new
After creation, I changed the settings on the app to "Read & Write".
I went to Twitter Module & added the Consumer Key & Consumer Secret.

There SHOULD be something here about OAuth Add Context & there-in lies my question.

I created a context, called it Star Twitter & left everything else blank.

I added my superuser (the main site twitter that I was already logged into on twitter.com).

All I get is https://twitter.com/oauth/authorize?oauth_token= And a page that says, "Whoah there!" (where's the token in the URL? What step did I miss?)

Been searching far & wide for this, and haven't found a thing.

Error messages are:


Notice: Undefined variable: response in TwitterOAuth->get_request_token() (line 307 of */modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token in TwitterOAuth->get_request_token() (line 308 of */modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token_secret in TwitterOAuth->get_request_token() (line 308 of */modules/twitter/twitter.lib.php).
Notice: Undefined index: oauth_token in TwitterOAuth->get_authorize_url() (line 314 of */modules/twitter/twitter.lib.php).

Comments

juampynr’s picture

Title: Twitter Sign In - nothing » Cannot sign in with Twitter
Category: support » bug

Hi skyline5k,

You apparently have done everything all right. I can only suggest you to try with the latest releases of both modules (Twitter beta 3 and OAuth alpha 2). The recommendation of using version 2 of OAuth is just for the Drupal 6 version of the Twitter module.

I do not know what is the "context" you say you are creating a context (is it to show the Sign with Twitter button there?).

I have added missing logic so if a user who did not have a Twitter account attempts to Sign in with Twitter, he gets back to the site and after logging in the Twitter account gets added automatically for the next time. It will be available tomorrow as a dev release or next week in the new beta release.

http://drupalcode.org/project/twitter.git/commitdiff/be7c835d99cc0ce34c8...

Seneschall’s picture

Thanks for the reply. I'll give it a try next week when I go back to that project & see what happens. I'll report back also.

juampynr’s picture

Status: Active » Fixed

Please reopen if you have an issue. I am releasing a new beta now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

carbre’s picture

Version: 7.x-3.0-beta2 » 7.x-3.0-beta4
Status: Closed (fixed) » Active

Hi all,

I came across this problem as well and was not able to fix this. It's quite strange as I have no problem with the modules on other Web sites. I use following versions of Twitter and OAuth:

  • oauth-7.x-3.0-alpha2
  • twitter-7.x-3.0-beta4

I get following warnings:

Notice: Undefined index: oauth_token in TwitterOAuth->get_authenticate_url() (line 355 of /home/www/html/sites/all/modules/twitter/twitter.lib.php).

Notice: Undefined index: oauth_token_secret in TwitterOAuth->get_request_token() (line 342 of /home/www/html/sites/all/modules/twitter/twitter.lib.php).

Notice: Undefined index: oauth_token in TwitterOAuth->get_request_token() (line 342 of /home/www/html/sites/all/modules/twitter/twitter.lib.php).

Notice: Undefined variable: response in TwitterOAuth->get_request_token() (line 341 of /home/www/html/sites/all/modules/twitter/twitter.lib.php).

Thanks for your help!

carbre’s picture

Status: Active » Fixed

Ok, I have found the problem (as stated here http://drupal.org/node/967394) . The server time was off, and now the oath token is generated correctly.

Automatically closed -- issue fixed for 2 weeks with no activity.