socialmanager

Easy Login in your app with different social networks.

License

License

Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

com.github.applikey
ArtifactId

ArtifactId

socialmanager
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

socialmanager
Easy Login in your app with different social networks.
Project URL

Project URL

https://github.com/AppliKey/SocialManager
Source Code Management

Source Code Management

https://github.com/AppliKey/SocialManager

Download socialmanager

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.applikey/socialmanager/ -->
<dependency>
    <groupId>com.github.applikey</groupId>
    <artifactId>socialmanager</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.applikey/socialmanager/
implementation 'com.github.applikey:socialmanager:1.0.0'
// https://jarcasting.com/artifacts/com.github.applikey/socialmanager/
implementation ("com.github.applikey:socialmanager:1.0.0")
'com.github.applikey:socialmanager:aar:1.0.0'
<dependency org="com.github.applikey" name="socialmanager" rev="1.0.0">
  <artifact name="socialmanager" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.applikey', module='socialmanager', version='1.0.0')
)
libraryDependencies += "com.github.applikey" % "socialmanager" % "1.0.0"
[com.github.applikey/socialmanager "1.0.0"]

Dependencies

compile (6)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 27.0.2
com.facebook.android : facebook-android-sdk jar 4.30.0
com.google.android.gms » play-services-auth jar 11.8.0
com.twitter.sdk.android » twitter-core jar 3.1.1
io.reactivex.rxjava2 : rxjava jar 2.1.2
io.reactivex.rxjava2 : rxandroid jar 2.0.1

Project Modules

There are no modules declared in this project.

GitHub license Twitter

Made by Applikey Solutions

Alt text

Table of Contents

  1. Purpose
  2. Installation
  3. Usage
  4. Demo
  5. Release Notes
  6. Contact Us
  7. License

Purpose

A reactive android library to easily implement social login (Facebook, Google, Twitter, Instagram) into your android project.

Installation

implementation 'com.github.applikey:socialmanager:1.0.0'

Usage

Configure app level gradle file:

android.buildTypes.debug.manifestPlaceholders = [
        twitterConsumerKey   : "Set your twitter application consumer key",
        twitterConsumerSecret: "Set your twitter application secret key",
        googleWebClientId    : "Set your google application web client id",
        facebookAppId        : "Set your facebook application id",
        instagramClientId    : "Set your instagram application client id",
        instagramClientSecret: "Set your instagram application client secret key id",
        instagramRedirectUri : "Set your instagram application redirect uri"
]

If you don't need some social networks, leave fields empty, but don't remove.

Configure your Application class:

public class MyApp extends Application {
    @Override public void onCreate() {
        super.onCreate();
        Authentication.init(this);
    }
}

Networks Connections

Twitter connection:

    void connectTwitter() {
        Authentication
                .getInstance()
                .connectTwitter()
                .login()
                .subscribe(networklUser -> {}),
                        throwable -> {});
    }

Google connection:

    void connectGoogle() {
        List<String> scopes = Arrays.asList(
                "https://www.googleapis.com/auth/youtube",
                "https://www.googleapis.com/auth/youtube.upload"
        );

        Authentication
                .getInstance()
                .connectGoogle(scopes)
                .login()
                ..subscribe(networklUser -> {}),
                        throwable -> {});
    }

Facebook connection:

    void connectFacebook() {
        List<String> scopes = Arrays.asList("user_birthday", "user_friends");
        Authentication
                .getInstance()
                .connectFacebook(scopes)
                .login()
                .subscribe(networklUser -> {}),
                        throwable -> {});

    }

Instagram connection:

    void connectInstagram() {
        List<String> scopes = Arrays.asList("follower_list", "likes");
        Authentication
                .getInstance()
                .connectInstagram(scopes)
                .login()
                .subscribe(networklUser -> {}),
                        throwable -> {});
    }

Release Notes

Version 1.0.0

  • Release version.

Contact Us

You can always contact us via [email protected] We are open for any inquiries regarding our libraries and controls, new open-source projects and other ways of contributing to the community. If you have used our component in your project we would be extremely happy if you write us your feedback and let us know about it!

License

MIT License

Copyright (c) 2018 Applikey Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Versions

Version
1.0.0