Recently, I updated Facebook SDK integration with user details post. Now, I am going to share easy steps to integrate Twitter Fabric SDK with user details. Using Facebook and Twitter login button, you all can make a brand app. For Facebook, check Facebook login post. For twitter, steps are given below:-
1. Go to twitter site -> create an app -> fill all details -> get Consumer Key and Consumer Secret.
2. Go to fabric site (register/login to proceed) to download android studio plugin for twitter login/update status.
Note:- Twitter official document available on twitter developer site.
3. After downloading fabric plugin, add it to android studio as per given instruction there. Restart Android studio and than create new project and click on icon generated by fabric on android studio. Select twitter login from list and click on next -> next -> finish. Most of the code/files added by fabric plugin automatically in your android project.
Now open your layout file and add a button for twitter login and assign id name "button" than use below code in your activity for twitter login and user details:-
Add permissions in app android manifest XML file:-
Now all are done. Comment below if you have any doubt or problem. Feel free to share it.
★ Add Facebook SDK in Android Application
★ Add Google AdMob Ads in Android App & Earn Money
★ Advance Android Google Map 2 Tutorial with Examples - Part 1
★ Start Working on Linphone Android
★ Call log details after ending call using ContentObserver & PhoneStateListener