Topic
The Twitter module for Drupal now needs to use the new OAuth module for
authentication in Twitter. This has broken many web sites.
I use this feature on this site to automatically post a tweet whenever
I add a new blog entry. I use a global account in Drupal to do
it, rather than individual Twitter accounts for each drupal user.
In order to get the Twitter module to work now, you'll need to do the
following things (note that this sequence is for a single global
Twitter account for all users wanting to have their tweets posted by
the Twitter Module)
Steps to take:
Steps to take:
- Upgrade the Twitter Module from 6.x-2.6 to 6.x-3.0-beta2 or better
- Install OAuth 2.0 (OAuth 3.0 doesn't work with Twitter 6.x-3.0-beta2) - in the drupal Oauth settings be sure to set OAuth cryptography as "HMAC-SHA1" and not Plain Text or RSA.
- As ADMIN (User 1) Run update.php -> this will update the database to support the new version of the twitter module
- Register your application with twitter: In your Twitter application settings ensure you have "Application Type" set as Browser and the "Callback URL" should be http://yoursite.com/twitter/oauth
- Set up the Twitter Module on your website (at http://www.yoursite.com/admin/settings/twitter ) to use the registered Consumer Tokens: "Consumer Key" & "Consumer Secret"
- Login as the admin user whose twitter account has been setup
- Go to My accounts -> Edit -> Twitter Accounts (click on the "Make Global" link to the right for the global user you assign)