Configuring Sign-In using Twitter

From WHMCS Documentation

Revision as of 19:41, 19 June 2019 by Lawrence (talk | contribs) (Create a Twitter App and Retrieve API Credentials)

This article is part of the Sign-In Integrations feature.

Purpose

Enabling the Twitter Sign In Integration enables visitors and customers to register, sign in and connect their Twitter accounts with your WHMCS installation for faster sign-up and automatic sign-in.

Signinintegrationslogin.png

Configuring Sign-In with Twitter

Watch Video Tutorial

There are 2 steps required to setup Sign-In with Twitter:

  1. Create a Twitter App and Retrieve API Credentials
  2. Activate Twitter Sign In within WHMCS

Create a Twitter App and Retrieve API Credentials

Twitter Sign In Integration requires a Twitter App and API Credential Set. You can create this using your existing Twitter account. Users will only see the App Name you define and not see anything relating to the account you use to create the project.

Be aware that the Twitter account under which you create the app can not be changed without requiring users to re-authenticate and re-link their accounts so it is important to set the app up under an account that you will always have access to.

1. Visit https://apps.twitter.com/
2. If not logged in, login to your Twitter account
3. Click the Create New App button

Twittersign1revised.png

4. Enter a Name, Description and Website URL for your App.

You must also enter a valid URL in the Callback URL fields. The URL you enter here is not used, but the valid URL of the callback file must be defined to enable WHMCS to utilize callbacks.

Because there are three possible callback URLs depending upon the Friendly URLs feature setting, we suggest adding all three:

Replace http://demo.whmcs.com/whmcs/ with the actual URL of your WHMCS installation

Twittersign2revised.png

5. Tick the "Enable sign in using Twitter" box, fill out the box explaining what the app will be used for (sign in integration from WHMCS) and click "Create".

6. If you do not yet have a phone number defined inside your Twitter account, you will see the following error upon submitting. To create an App, Twitter requires that you have a valid phone number registered in your account with them. You must do this before continuing.

Twittersign3.png

7. After submitting the App Creation form, you should see a success confirmation page that looks as follows.

Twittersign4revised.png

8. Select the Permissions tab. WHMCS only requires Read permissions so you can click the "Edit" button, change the default Access permission level to Read only. Then hit Save

Twittersign5.png

9. Now select the Keys and Access Tokens tab. Your API Key and Secret will then be displayed. These are the values you will need to activate Twitter Sign In within WHMCS so store these in a safe place.

Twittersign6.png

You can now proceed to Activate Twitter Sign In within WHMCS.

Activate Twitter Sign In within WHMCS

  1. Login to the WHMCS Admin Area
  2. Navigate to Setup > Sign-In Integrations
  3. Select Activate under the Twitter heading
  4. Enter your Twitter API Key and API Secret where requested
  5. Click Save & Activate

WHMCS will attempt to validate and test the details you have entered. If the API Key and Secret are valid and successfully authenticate with the Twitter API, the values will be saved and the modal will close.

Congratulations! Twitter Sign In is now enabled.

Troubleshooting

For troubleshooting help, please refer to Troubleshooting Sign-In using Twitter