Coder Social home page Coder Social logo

social-signin's Introduction

social-signin

This is a single android project which is having functionality of login and sharing with Facebook, Twitter and Linkedin at one place.

Pre- requisites:

  1. You have setup developer accounts for facebook, twitter and linkedin
  2. Make sure you have following things ready with you a. For facebook: app key b. For twitter: consumer key and consumer secrete c. For linkedin: client id, client secrete key, and redirect url.

After downloading project structure, import in eclipse/android studio. there are 3 project

  1. SignInWithSocial - Our Main project
  2. facebook - latest facebook sdk for facebook integration.
  3. android-support-v7-appcompat - version 7 support project

After importing add facebook and android-support-v7-appcompat as library project to our main project SignInWithSocial

Make following changes in the SignInWithSocial application

  1. In res --> values --> string.xml --> add your facebook app key XXXXXXXXXXXXXXXX

  2. In AndroidManifest.xml --> add same facebook app key in the authority of facebook content provider. <provider android:authorities="com.facebook.app.FacebookContentProviderXXXXXXXXXXXXXXXX" <-- add here android:name="com.facebook.FacebookContentProvider" android:exported="true"/>

  3. In com.example.twitter.TwitterLogin activity --> add your consumer_key and secret_key for twitter. private static final String consumer_key = "XXXXXXXXXXXXX"; private static final String secret_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

  4. In com.example.linkedin.LinkedInLogin activity --> add your account API_KEY and SECRET_KEY private static final String API_KEY = "XXXXXXXXX"; private static final String SECRET_KEY = "XXXXXXXXXXXX";

    Also add REDIRECT_URI from your account. private static final String REDIRECT_URI = "https://xxx.xxx.com";

Currently app the keys used in the app are sample key. You can use these keys to run and check the functionality of the app.

And that's it..... you are good to run the project.

Happy Learning....

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.