Skip to main content

How to create a Twitter (X) App Project

To configure a Twitter (X) social account in your store, open Configuration, enable Twitter, and fill in the required fields.

Follow the steps below to create and configure your Twitter (X) App.

note

Following the Twitter -> X rebrand, the API policy has changed. OAuth access is now available through the Twitter Developer Platform (Free, Basic, Pro plans). For Social Login, the free tier is sufficient if you only need OAuth.

  1. Open the Twitter Developer Portal and log in using your X (Twitter) account.

    If this is your first time:

    • You may need to apply for developer access.
    • Accept the Terms of Service.
    • Choose the Free or Basic access level (Free is enough for login).
  2. After logging in create a new project & app: open Developer Portal, navigate to Projects & Apps and click Create Project and App. Fill in next fields:

    • Project name: for example Twitter Social Login
    • Use case: select Sign-in with X (or similar OAuth purpose)
    • App name: for example: Twitter Login for MyStore

    Click Next to create the app.

  3. In your new app go to Projects & Apps -> Your App -> App Settings and configure:

    • OAuth settings
    • Callback URLs
    • Website URL
    • App permissions
  4. Go to User authentication settings and enable both OAuth versions for maximum compatibility:

    • OAuth 2.0 (recommended for new apps)
    • OAuth 1.0a (optional but recommended, because still required by some libraries)

    Additionally select Read App Type (this is enough for social login).

  5. Configure Authorized redirect URIs.
    You can find the required value in the Redirect URI field in the Social Login extension configuration.

  6. Configure website URL & terms links in the Twitter (X) account:

    • Website URL: your store URL
    • Privacy Policy URL
    • Terms of Service URL

    These fields are mandatory and must be publicly accessible. Click Save to apply OAuth settings. Twitter will validate your domain and URLs.

  7. Retrieve API keys & secrets. Open Projects & Apps -> Your App -> Keys and Tokens and copy the credentials: API Key, API Key Secret. Paste them into the Twitter section of your Magento Social Login configuration.

  8. Switch environment to production. By default, Twitter apps are created in Development environment.

    • Go to Settings
    • Change environment to Production
    • Confirm your configuration

This enables Social Login for real users (not only your own account). Your Twitter App Project is now ready for use in Social Login.