by andrebts

andrebts / login-basics

The Login Basics is an implementation of Android Login with Facebook, Google Plus (G+) and your own ...

412 Stars 142 Forks Last release: Not found 28 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Login Basics

Login Basics is an implementation of an Android app that support Login with Facebook, Google Plus (G+) and your own login logic. The aim of this project is to serve as basis to build apps that require login as a feature.



In order to make the project ready for your app you need to:


  • Create an Facebook app at https://developers.facebook.com/apps/;
  • Replace the value of facebookappid at strings.xml;


  • Go to the Google Developers Console at https://console.developers.google.com/ and create a new project (or get to one you already have);
  • In the left sidebar, select APIs & auth (the APIs sub-item is automatically selected) find the Google+ API and set its status to ON;
  • Get a configuration file at Google Developers by:
    a) Select the correct project and package then click on Continue;
    b) Click the button on the bottom to Generate configuration files
    c) Download the google-services.json for your app and put it at the app/ or mobile/ module directory in your Android project. (The file contains configuration details, such as keys and identifiers, for the services you just enabled)

Own Logic

  • Replace the code at doInBackground on UserLoginTask at the LoginActivity to your own logic;
  • Be happy :)


André Batista da Silva * LinkedIn andrebts * [email protected]


Copyright (C) 2015 andrebtsa
Copyright (C) 2013 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.