Twitter authentication in Wise Chat Pro
Wise Chat Pro users can use their Twitter accounts to log into the chat. Therefore there is no need to have an account in your website, but a regular Twitter account is sufficient to get authenticated.
User clicks on the blue Twitter login button and then is redirected to Twitter site where he/she logs in to Twitter as usually. Additionally the user gives Wise Chat Pro permission to use Twitter account for authentication purpose. After this the user returns to Wise Chat Pro page and immediately becomes authenticated.
When user logs in via Twitter the following data are transferred directly to Wise Chat Pro:
- user name
- profile URL
- avatar image URL
Before you configure Twitter authentication
- Disable Anonymous Users
- Force Username Selection
How to set Twitter authenticationTo enable Twitter authentication in Wise Chat Pro you will need API Key and API Secret. In order to get these two values you have to:
1. Log in to Twitter using your regular account: https://twitter.com/
2. Go to Twitter Application Management site: https://apps.twitter.com/
3. Click “Create New App” button. You will see the following form:
Please fill all fields. Be careful to put the correct URL to
Callback URLfield. It is crucial. It should be the exact direct URL to the page where you have installed Wise Chat Pro on your website. After you fill the form click “Create your Twitter application” button.
4. After the form is saved you will see detailed information regarding your newly created application.
5. Click on
Keys and Access Tokenstab. You can find your
API Secretvalues in two first rows of the table. Please copy these values for further usage on Wise Chat Pro settings page.
6. Log in to your WordPress website. Go to
Wise Chat Pro Settingspage and click
External logintab. Scroll down to see the following form: Fill
API Secretfields with values that you have copied in the previous step of this tutorial. After you save the form Twitter authentication will be complete.