Giter Site home page Giter Site logo

ajaygosh102 / socialloginintegrationandroid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from droidninja/socialloginintegrationandroid

0.0 1.0 0.0 153 KB

Android Project with helper classes for login through facebook, twitter and google

Home Page: http://arunsharma.me/blog/integrate-facebook-google-login-android/

Java 100.00%

socialloginintegrationandroid's Introduction

SocialLoginIntegrationAndroid

Android Project with helper classes for login through facebook, twitter and google

demo demo

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(<YOUR CLIENT ID>)
    

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

GooglePlusSignInHelper

FbConnectHelper

If there is some problem, feel free to contact me( [email protected] ).

socialloginintegrationandroid's People

Contributors

droidninja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.