All Projects → am-Leon → LeonSocialLogin

am-Leon / LeonSocialLogin

Licence: other
Leon Social Login is an Android library written to Integrate (Twitter, Facebook, Google, SnapChat) login.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to LeonSocialLogin

Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (+437.5%)
Mutual labels:  social, facebook, facebook-login
Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+2756.25%)
Mutual labels:  social, facebook, facebook-login
Socialblocklists
Blocklists to block the communication to social networking sites and privacy harming services
Stars: ✭ 161 (+906.25%)
Mutual labels:  social, snapchat, facebook
KASocialLogins
This is Social login library in which you can login through Facebook , LinkedIn and Google
Stars: ✭ 15 (-6.25%)
Mutual labels:  facebook, facebook-login, social-login
hej
Hej! is a simple authentication boilerplate for Socialite.
Stars: ✭ 111 (+593.75%)
Mutual labels:  social, facebook
angular5-social-login
Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
Stars: ✭ 40 (+150%)
Mutual labels:  facebook-login, social-login
Spruce
A social networking platform made using Node.js and MongoDB
Stars: ✭ 399 (+2393.75%)
Mutual labels:  social, social-login
Opensource Socialnetwork
Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 16 international languages.
Stars: ✭ 710 (+4337.5%)
Mutual labels:  social, facebook
Vuepress Plugin Social Share
📣 Social sharing plugin for VuePress
Stars: ✭ 27 (+68.75%)
Mutual labels:  social, facebook
Friend.ly
A social media platform with a friend recommendation engine based on personality trait extraction
Stars: ✭ 41 (+156.25%)
Mutual labels:  social, social-login
Graphjs
A set of widgets for a meaningfully social web.
Stars: ✭ 212 (+1225%)
Mutual labels:  social, 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 (+193.75%)
Mutual labels:  social, facebook
hashtag.io
Hashtag.io is a PHP based social networking website, which supports exclusive multimedia content, sharing and private or group messaging service.
Stars: ✭ 64 (+300%)
Mutual labels:  social, facebook
aboutmeinfo-telegram-bot
ℹ️ About Me Info Bot: Share your social media and links on Telegram
Stars: ✭ 20 (+25%)
Mutual labels:  social, facebook
Shellphish
Phishing Tool for 18 social media: Instagram, Facebook, Snapchat, Github, Twitter, Yahoo, Protonmail, Spotify, Netflix, Linkedin, Wordpress, Origin, Steam, Microsoft, InstaFollowers, Gitlab, Pinterest
Stars: ✭ 1,037 (+6381.25%)
Mutual labels:  snapchat, facebook
Stealing Ur Feelings
Winner of Mozilla's $50,000 prize for art and advocacy exploring AI
Stars: ✭ 784 (+4800%)
Mutual labels:  snapchat, facebook
social-auth-kivy
Integrate Google, Facebook, Github & Twitter login in kivy applications
Stars: ✭ 133 (+731.25%)
Mutual labels:  facebook-login, social-login
Social Media Profiles Regexs
📇 Extract social media profiles and more with regular expressions
Stars: ✭ 324 (+1925%)
Mutual labels:  snapchat, facebook
Socialphish
The most complete Phishing Tool, with 32 templates +1 customizable
Stars: ✭ 378 (+2262.5%)
Mutual labels:  snapchat, facebook
Social Login Helper Deprecated
A simple android library to easily implement social login into your android project
Stars: ✭ 81 (+406.25%)
Mutual labels:  social, facebook

LeonSocialLogin

Leon Social Login is an Android library written to Integrate (Twitter, Facebook, Google, SnapChat) login.

Installation

1- Add this library as a dependency in your app's build.project file.

allprojects {  
      repositories {  
         maven { url 'https://jitpack.io' }  
         maven { url "https://storage.googleapis.com/snap-kit-build/maven" }
      }  
   }  
   

2- Add the dependency.

    implementation 'com.github.am-Leon:LeonSocialLogin:v1.1.1'

Usage

1- open strings.xml file and paste these strings for what you need.

<resources>

    <!--facebook-->
    <string name="facebook_app_id" translatable="false">your_facebook_app_id</string>
    <string name="fb_login_protocol_scheme" translatable="false">your_facebook_login_protocol_schema</string>

    <!--twitter-->
    <string name="twitter_CONSUMER_KEY" translatable="false">your_twitter_consumer_key</string>
    <string name="twitter_CONSUMER_SECRET" translatable="false">your_twitter_consumer_secret</string>

    <!--snapChat-->
    <string name="snap_chat_client_id" translatable="false">snap_chat_client_id</string>
    <string name="snap_chat_redirect_url" translatable="false">snap_chat_redirect_url</string>

       <!-- Enter the parts of your redirect url below
            e.g., if your redirect url is myapp://snap-kit/oauth2
       !-->
    <string name="snap_chat_host_value" translatable="false">snap-kit</string>
    <string name="snap_chat_path_value" translatable="false">/oauth2</string>
    <string name="snap_chat_scheme_value" translatable="false">myapp</string>

</resources>

2- inside your Activity.

public class MainActivity extends AppCompatActivity implements SocialLogin.SocialLoginCallback {

    private SocialLogin socialLogin;
    private AppCompatButton socialLogin_faceBook, socialLogin_twitter, socialLogin_google, socialLogin_snapChat;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        socialLogin = new SocialLogin(this, this);

        socialLogin_faceBook = findViewById(R.id.socialLogin_faceBook);
        socialLogin_twitter = findViewById(R.id.socialLogin_twitter);

        socialLogin_faceBook.setOnClickListener(v -> socialLogin.facebookLogin());

        socialLogin_twitter.setOnClickListener(v -> socialLogin.twitterLogin());
        
        socialLogin_google.setOnClickListener(v -> socialLogin.googleLogin());

        socialLogin_snapChat.setOnClickListener(v -> socialLogin.snapChatLogin());

    }


    @Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        socialLogin.onResult(requestCode, resultCode, data);
    }

    @Override
    public void socialLoginResponse(SocialResponse social) {
        switch (social.getProviderType()) {
            case TWITTER:
                TwitterModel twitterModel = (TwitterModel) social.getResponse();
                System.out.println(twitterModel.toString());
                break;

            case FACEBOOK:
                FacebookModel facebookModel = (FacebookModel) social.getResponse();
                System.out.println(facebookModel.toString());
                break;

            case GOOGLE:
                GoogleModel googleModel = (GoogleModel) social.getResponse();
                System.out.println(googleModel.toString());
                break;

            case SNAPCHAT:
                SnapChatModel snapChatModel = (SnapChatModel) social.getResponse();
                System.out.println(snapChatModel.toString());
                break;
        }
    }
}

License

MIT License

Copyright (c) 2020 am-Leon

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.

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].