https://github.com/droidninja/socialloginintegrationandroid
Android Project with helper classes for login through facebook, twitter and google
https://github.com/droidninja/socialloginintegrationandroid
Last synced: 10 months ago
JSON representation
Android Project with helper classes for login through facebook, twitter and google
- Host: GitHub
- URL: https://github.com/droidninja/socialloginintegrationandroid
- Owner: DroidNinja
- Created: 2015-09-13T16:17:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-15T16:19:21.000Z (about 10 years ago)
- Last Synced: 2025-08-02T00:38:00.380Z (11 months ago)
- Language: Java
- Homepage: http://arunsharma.me/blog/integrate-facebook-google-login-android/
- Size: 149 KB
- Stars: 43
- Watchers: 4
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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'
```
1. Create app in Google Developer Console by filling out this form:
https://developers.google.com/mobile/add?platform=android
2. Enable Google Signin.
3. Get Web Client id mentioned in Oauth 2.0 client ids area here:
https://console.developers.google.com/apis/credentials
4. Set this Client id before using instance of GooglePlusSignInHelper :
```
GooglePlusSignInHelper.setClient()
```
Note: If you want google+ information, you need to do following steps:
1. Make sure that Google+ Api is enabled in Google Developer Console.
2. 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'
```
1. Create app in Facebook Developer Console.
2. 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.
[TwitterConnectHelper](https://github.com/DroidNinja/SocialLoginIntegrationAndroid/blob/master/app/src/main/java/com/binarywalllabs/socialintegration/helpers/TwitterConnectHelper.java)
[GooglePlusSignInHelper](https://github.com/DroidNinja/SocialLoginIntegrationAndroid/blob/master/app/src/main/java/com/binarywalllabs/socialintegration/helpers/GooglePlusSignInHelper.java)
[FbConnectHelper](https://github.com/DroidNinja/SocialLoginIntegrationAndroid/blob/master/app/src/main/java/com/binarywalllabs/socialintegration/helpers/FbConnectHelper.java)
If there is some problem, feel free to contact me( droidninja15@gmail.com ).