Configuring Twitter
If you have configured Facebook apps successfully, it’ll not be hard for you to configure the other platforms (Twitter, Google, and Linkedin). Just follow the quick steps below.
Quick overview of the Social Login Module (Twitter)
How to get Consumer Key and Consumer Secret from the Twitter app?
You’ll need Consumer Key and Consumer Secret to configure the Twitter registration/login process. Click on the ‘Create an App’ link indicated on the image below.
It will take you to the https://apps.twitter.com/ page after clicking on the ‘Create an App’ link. You’ll be asked to create an app here. Just click on the ‘Create New App’ button to go further.
Creating A Developers Account
When you click on Create New App, Twitter will ask you to apply for a developer's account if you do not have one.
If you click on Apply, you will be taken to a page where you have to choose what you want to do with this developer's account. It is better to choose Exploring the API or Do Something Else if you are confused. After choosing, click on the Next button.
If you are already logged in to your Twitter handle, then they will immediately recognize you. Don't worry, if you are not logged in the login page to Twitter will appear.
You need to select your country, your username. If you want you can change your email address. Again click on Next.
The next page will be some questions. Twitter will ask you how you want to use Twitter API.
Also to describe your planned use of those features. Click on Next.
Then, you need to confirm if the information you have given is correct or not. If it is not correct then you can edit. Else, you hit Looks Good confirm.
After that, comes the agreement page. If you agree with the terms and policy then mark the box. Click on Submit Application.
Note that, it takes usually 5 hours to a day to confirm your application. If you are lucky it can take a few minutes. After confirming you will get a confirmation email and a link. After clicking on the link you will be taken to a page.
Click on Create An App.
Well done, your developer account is created.
Create A Twitter App
You will be redirected to this link. Click on Create New App.
After clicking on the ‘Create New App’ you’ll be taken to the Application Management page where you’ll need to fill the details of your app as shown the image below.
→ Name: Give an appropriate apps name. This is used to attribute the source of a tweet and in user-facing authorization screens. The word limit is 32 characters maximum.
→ Description: This description will be shown in user-facing authorization screens. Word limit between 10 and 200 characters maximum.
→ Website: Your website URL
→ Callback URL: The URL where you want to take your visitors/users after successful register or logging in. Copy the link from your setting page that has been generated already.
Now paste it in the settings
Checkmark(√) the Twitter development agreement and finally click on the ‘Create your Twitter application’ button to complete the process.
Your Twitter app has been created. Click on the Keys and Access Tokens tab and get your Consumer Key and Secret from here. See the indicated fields in the image below.
→Insert the Consumer Key and Secret into the setting page as below.
All set! Now check the My Account page and click on the Twitter icon to register/login with your Twitter profile.
Once you click on the Twitter icon as shown in the image above, it will take you to the Twitter authentication page. Just ‘Authorize App’, and that’s it!
It will redirect immediately after authenticating the apps to the registration page. You are done!