Sign In Using Twitter
Twitter™ Sign-In Integrations let your customers connect with Twitter to quickly sign up for an account or log in to the Client Area.
Configuring Sign-In with Twitter
To use sign-in integrations with Twitter, you must create a Twitter app and API credentials.
- WHMCS’s integration uses Twitter API v1.1. Some Twitter accounts will require Elevated access to use this version of the Twitter API.
- You can integrate using your existing Twitter accounts. Users will only see the app name that you define. They will not see anything relating to the account that you use to create the app.
To configure sign-in using Twitter on your WHMCS installation:
1. Create a Twitter App.
To create a Twitter app:
- Log in to your Twitter account.
- Go to the Twitter Developer Portal.
- Click Projects & Apps.
- In the left sidebar, click Overview.
- Click Create App.
2. Save the app credentials.
To save the app credentials:
- Enter an app name.
- Save the displayed API key and API secret key.
3. Configure callback URLs.
To configure OAuth settings and callback URLs:
- In the app settings, click Set Up under User Authentication Settings.
- Enable OAuth 2.0.
- Set Type of App to Web App.
- Enter the URL for your Client Area as the callback URL and website URL.
- You must enter a valid callback URL.
- We recommend adding all three possible callback URLs, replacing
http://example.com/whmcs/
with your WHMCS installation URL:http://example.com/whmcs/index.php
http://example.com/whmcs/index.php/auth/provider/twitter_oauth/callback
http://example.com/whmcs/auth/provider/twitter_oauth/callback
- Click Save.
4. Configure the App in WHMCS.
To enable sign-in integrations with Twitter in your WHMCS installation:
- Log in to the WHMCS Admin Area.
- Go to Configuration () > System Settings > Sign-In Integrations.
- Select Activate under Twitter.
- Enter your Twitter API Key for ConsumerKey and the API Secret for ConsumerSecret.
- Click Save & Activate.
WHMCS will attempt to validate and test the details that you have entered. If the credentials are valid and successfully authenticate with the Google API, the system will save them.
Common Errors
You may see the following common errors while setting up sign-in integrations with Twitter:
Error Message | Description | Recommended Solution |
---|---|---|
Invalid details not saved. Please verify your details and try again | You may receive the above error message when attempting to configure your Twitter API credentials. It usually indicates that you entered invalid API credentials or misconfigured the callback URLs. | Check whether you entered your credentialss and callback URLs correctly. |
Unable to access Sign-In Integrations page | If you already have the necessary administrator role permissions, inability to access the interface at Configuration () > System Settings > Sign-In Integrations may indicate an issue in your Friendly URLs configuration. | Check your Friendly URLs configuration for issues. |
Social login: Error We could not connect to your account | This error indicates an issue with a custom System Theme template. | Change to the Six or Twenty-One themes and check whether the error continues. If it does not, this confirms that the issue is in the custom theme. Contact the system theme template developer for help. |
We were unable to connect your account. Please contact your system administrator | This error indicates a misconfiguration in the callback URL in your Twitter app settings or that your Twitter account does not have access to Twitter API v1.1. | Make certain that you have configured the callback URLs correctly. If the issue does not resolve, request Elevated access from Twitter. |
Link Initiated! Please complete sign in to associate this service with your existing account. You will only have to do this once or Link Initiated! Please complete the registration form below | This is a standard response when a client clicks Sign In With Twitter but has not yet linked their account. | The client will need to log in with their Client Area email address and password to successfully link their Twitter account to it. |
Last modified: October 31, 2024