Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows users to register and log in to your Drupal site using their Twitter accounts. It handles both new user creation and linking existing accounts, and can be initiated from a dedicated login block or a custom link.

This project is part of the Drupal Social Initiative and is based on the Social API.

Social Auth Twitter allows users to register and login to your Drupal site with their Twitter account. This module is based on Social Auth and Social API projects

This module adds a path user/login/twitter which redirects the user to Twitter for authentication.

After Twitter has returned the user to your site, the module compares the user id or email address provided by Twitter. If the user has previously registered using Twitter or your site already has an account with the same email address, the user is logged in. If not, a new user account is created. Also, a Twitter account can be associated to an authenticated user.

Login process can be initiated from the "Twitter" button in the Social Auth block. Alternatively, site builders can place (and theme) a link to user/login/twitter wherever on the site.

Configuration

Version 3.x

Only OAuth 1.0a is supported in the 3.x branch.

In Drupal

  1. Log in as an admin.

  2. Navigate to Configuration » User authentication » Twitter and
    copy the Callback URL field value (the URL should end in
    /user/login/twitter/callback).

In Twitter Developer Portal

  1. Log in to a Twitter account.

  2. Navigate to Projects & Apps » Overview.

  3. Under Standalone Apps click Create App.

  4. Enter an app name and click Next.

  5. Copy the API Key, API Key Secret, and Bearer Token and save them
    somewhere safe.

  6. Click App settings.

  7. Ensure the app has Elevated Access.

    1. Click Apply next to the message "Do you need Elevated access for your Project?" if it appears.

    2. Fill in all required basic info fields and click Next.

    3. Fill in all required intended use fields and click Next.

    4. Review the settings and click Next.

    5. Carefully read the Developer Agreement, tick the acknowledgement box and click Submit.

    6. Approval should be immediate. Navigate back to Projects & Apps and click the app name to return to the app settings page.

  8. Under User authentication settings click Set up.

  9. Toggle "OAuth 1.0a" (to enable it).

  10. Optionally toggle "Request email from users" (to enable it).

  11. Paste the URL copied from Step 2 in the Callback URI / Redirect URL field.

  12. Fill in other required and optional fields as desired.

  13. Click Save.

In Drupal

  1. Return to Configuration » User authentication » Twitter

  2. Enter the API Key in the Client ID field.

  3. Enter the API Key Secret in the Client secret field.

  4. Click Save configuration.

  5. Navigate to Structure » Block Layout and place a Social Auth login block
    somewhere on the site (if not already placed).

Activity

Total releases
1
First release
Dec 2025
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
3.0.3 Stable Dec 28, 2025