Sign in to drupal with your Twitter account (6.x-3.x)

Last updated on
17 August 2018

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Twitter contain a sub module - Twitter Signin. This enable users to login to

This simply provides a block with a link for site users to click which authenticates using Twitter's OAuth protocol and upon returning, creates a user account on your Drupal website and signs into it. That being said, the OAuth module is required for this functionality. You will also need to register your application with Twitter.com in order to obtain a Consumer key and Consumer secret.

Step by step guide

  1. Download the following modules: Twitter 3.x and OAuth 6.x-3.
  2. Enable following modules: twitter, twitter signin and oauth.
  3. During registration you will be asked to provide something called a Callback URL, this found at /admin/settings/twitter. Make sure you keep this handy, you will soon need it.
  4. It is now time to registering your drupal site (web application) at https://dev.twitter.com/apps/new. You need to provide Twitter with: Name, Description, Website and the famous Callback URL.
    Twitter-app
  5. Once you have completed the registration Twitter will generate two keys, Consumer key and Consumer secret. Both of these is needed by Drupal so keep them handy.
  6. Go to /admin/settings/twitter and enter your OAuth Consumer and Consumer secret –key, which you received from Twitter.
    twitter keys
  7. In your Twitter Developer's account, under the “Settings” tab, you will need to change the “Application Type > Access:” to “Read, Write and Access direct messages”
  8. Go to a user account and add a Twitter account and authorize you site to access it.
  9. You are now able to sign in by using the Drupal login block, accessing example.com/user or by using Sign in with Twitter provided by twitter signin.

Help improve this page

Page status: No known problems

You can: