Social Login: Twitter API v2 Setup

Overview

This document will provide instructions on setting up a Twitter application API version 2, so users can register or log in via Twitter on your site. You need to purchase and activate social login extension for this setup to work.

Creating a Project

You need to create a project first before you create a new app. Do the following steps below to create a project:

  • Go to the Twitter App developer portal: https://developer.twitter.com/en/portal/projects-and-app.
  • In the left side menu, below Projects & Apps, click on Overview.
  • Under the Elevated Section, click on the "+ New Project" button to add a new project.
  • Set the name of your project and click on the Next button.

  • Select how you intend to use the Twitter developer platform from the drop-down menu and then click on the Next button.

  • Type and describe your project in the text area. Click on the Next button.
  • Creating a new

    To create a new Twitter app, you need to do the following steps below:

  • Click on the Create new button to create a new app.
  • You can select from the three options, Development, Staging, and Production, under App Environment, to which environment your app belongs to. After selecting, click on the Next button.

  • Set the name of your app and click on the Next button.

  • Once the App is created, copy the API Key and API Secret Key.

    • Add the keys to the Social Login. Go to Ultimate Member > Settings> Extensions > Twitter Social Connect. Paste the API Key in the Consumer Key and API Secret Key in the Consumer Secret, click on the Save Changes button to update.
  • You can now test and check if the Twitter Login or Register Button Appears in the Login form or Register Form. Ensure that the Show social connect login forms, or registration forms are enabled in the Social login settings from wp-admin>Ultimate Member> Settings> Extension> Social login.