All Projects → ProKashif → KASocialLogins

ProKashif / KASocialLogins

Licence: other
This is Social login library in which you can login through Facebook , LinkedIn and Google

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to KASocialLogins

Argus Android
Login/Registration Module for Android
Stars: ✭ 89 (+493.33%)
Mutual labels:  facebook-login, google-login, social-login
Magento 2 Social Login
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Stars: ✭ 156 (+940%)
Mutual labels:  linkedin, facebook-login, social-login
Socialloginmanager
DEPRECATED
Stars: ✭ 178 (+1086.67%)
Mutual labels:  facebook-login, google-login, social-login
Simpleauth
A easy to use social authentication android library. (Facebook, Google, Twitter, Instagram)
Stars: ✭ 216 (+1340%)
Mutual labels:  facebook-login, google-login, social-login
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (+473.33%)
Mutual labels:  facebook, facebook-login, google-login
Spring Boot React Oauth2 Social Login Demo
Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
Stars: ✭ 676 (+4406.67%)
Mutual labels:  facebook-login, google-login, social-login
SimpleOAuth
Simple OAuth 2.0 for Android
Stars: ✭ 15 (+0%)
Mutual labels:  facebook, facebook-login, google-login
Angularx Social Login
Social login and authentication module for Angular 9
Stars: ✭ 442 (+2846.67%)
Mutual labels:  facebook-login, google-login, social-login
Socialite
Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
Stars: ✭ 1,026 (+6740%)
Mutual labels:  facebook, linkedin, social-login
Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+2946.67%)
Mutual labels:  facebook, facebook-login, google-login
Laravel Socialite
Social OAuth Authentication for Laravel 5. drivers: facebook, github, google, linkedin, weibo, qq, wechat and douban
Stars: ✭ 296 (+1873.33%)
Mutual labels:  facebook, linkedin, social-login
angular5-social-login
Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
Stars: ✭ 40 (+166.67%)
Mutual labels:  facebook-login, google-login, social-login
social-auth-kivy
Integrate Google, Facebook, Github & Twitter login in kivy applications
Stars: ✭ 133 (+786.67%)
Mutual labels:  facebook-login, google-login, social-login
LeonSocialLogin
Leon Social Login is an Android library written to Integrate (Twitter, Facebook, Google, SnapChat) login.
Stars: ✭ 16 (+6.67%)
Mutual labels:  facebook, facebook-login, social-login
react-custom-share
Social media share buttons for ReactJS. Use one of the built-in button themes or create a custom one from scratch.
Stars: ✭ 47 (+213.33%)
Mutual labels:  facebook, linkedin
nest-angular-auth-client
Angular client for NestJS authentication (Login, Register, Google Login, Facebook Login, Apple Login, Messages, Rooms, Private DMs)
Stars: ✭ 16 (+6.67%)
Mutual labels:  facebook-login, google-login
PopMovies
Aplicativo em Android para organização dos seus filmes favoritos.
Stars: ✭ 41 (+173.33%)
Mutual labels:  facebook-login, google-login
facebook-node-sdk
Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).
Stars: ✭ 519 (+3360%)
Mutual labels:  facebook, facebook-login
android-facebook-login
Demo Facebook Login Android Application
Stars: ✭ 20 (+33.33%)
Mutual labels:  facebook, facebook-login
sharon
A lightweight and modular social sharing library
Stars: ✭ 16 (+6.67%)
Mutual labels:  facebook, linkedin

KASocialLogins

This is Social login library in which you can login through Facebook, LinkedIn and Google

Installation

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

dependencies {
	        implementation 'com.github.ProKashif:KASocialLogins:Tag'
	}

where Tag is the version of the lib. You can find the latest version in the badge on top of the page

Usage for Facebook

To login into some Facebook, you should call KASocialLogin.

import com.creativemorph.sociallogins.Facebook;

facebook = new Facebook(this);
facebook.login();

Also you should impliments KASocialLogins listener for callback

implements Facebook.FacebookResponseListener

@Override
    public void onFacebookResponseListener(JSONObject response, boolean error) {
        Log.d("Response", String.valueOf(response));
    }

Also you should redirect you onActivityResult() callback to KASocialLogin

@Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        facebook.activityResult(requestCode, resultCode, data);
    }

Config

For facebook login you will need to add the following to your android manifest

 <uses-permission android:name="android.permission.INTERNET" />
 
<meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id" />

Usage for Google

Step 1. Register App

Register your app on Google Developer Account

Please view the Goolgle documentation if you face any issue related to dependency

  • Add project/build.gradle
	
	classpath 'com.google.gms:google-services:4.3.2'

  • Add the dependencies for the Google Play services to your module (app-level) Gradle file (usually app/build.gradle):

	implementation 'com.google.android.gms:play-services-auth:17.0.0'
	
	apply plugin: 'com.google.gms.google-services'
	

Step 2.

To login into Google you should call KASocialLogin.

	import com.creativemorph.sociallogins.Google;

        google = new Google(this);
	google.login();
	 Google.GoogleResponseListener

 @Override
    public void onGoogleResponseListener(JSONObject response, boolean error) {
        Log.d("Response", String.valueOf(response));
    }

Also you should redirect you onActivityResult() callback to KASocialLogin

 @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == SocialLoginConstant.GOOGLE_REQUEST_CODE) {
            google.activityResult(requestCode, resultCode, data);
        } 
    }

Usage for LinkedIn

Step 1. Register App

Register your app on LinkedIn Developer Account

Step 2.

To login into some network, you should call KASocialLogin.

	import com.creativemorph.sociallogins.LinkedIn;

        linkedIn = new LinkedIn();
        linkedIn.init(this);
	linkedIn.setLinkedInCredentials("apiKey","secretKey","state");
        linkedIn.setRedirect_URL("url");
	linkedIn.login();

you can find both keys from developer account ans state from your callbackUrl Also you should impliments KASocialLogins listener for callback

LinkedIn.LinkedInResponseListener 

@Override
    public void onLinkedInResponseListener(JSONObject response, boolean error) {
        Log.d("Response", String.valueOf(response));
    }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

[MIT]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].