SocialLoginIntegrationAndroid
Android Project with helper classes for login through facebook, twitter and google
I have used following libraries:
For Google Login
compile 'com.google.android.gms:play-services-auth:9.0.2'
-
Create app in Google Developer Console by filling out this form:
-
Enable Google Signin.
-
Get Web Client id mentioned in Oauth 2.0 client ids area here:
-
Set this Client id before using instance of GooglePlusSignInHelper :
GooglePlusSignInHelper.setClient(<YOUR CLIENT ID>)
Note: If you want google+ information, you need to do following steps:
-
Make sure that Google+ Api is enabled in Google Developer Console.
-
Include this dependency:
compile 'com.google.android.gms:play-services-plus:9.0.2'
Then, you can access all information through person object in GooglePlusSignInHelper success callback.
For Facebook Login
compile 'com.facebook.android:facebook-android-sdk:4.5.0'
-
Create app in Facebook Developer Console.
-
Follow the steps mentioned here :
https://developers.facebook.com/docs/android/getting-started/
For Twitter Login
compile('com.twitter.sdk.android:twitter:1.13.1@aar')
You need to approve your application for email access by filling form at:
https://support.twitter.com/forms/platform
You can use following helper classes for integrating any type of login process in your application.
If there is some problem, feel free to contact me( droidninja15@gmail.com ).