O'Reilly logo

Bulletproof Android™: Practical Advice for Building Secure Apps by Godfrey Nolan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

OAuth with Facebook

In this OAuth example we’ll provide the option to allow the user to log in and control the session length via Facebook.

So how do we do this? Just follow these steps:

1. Download the Facebook APK from developers.facebook.com and install it on the emulator.

2. Next we need to create the app in Facebook. We do that by choosing Developers Settings or going to Apps->Create New App.

3. Create the Bulletproof Android app and choose a category (see Figure 3-4).

Image

Figure 3-4 Creating the Bulletproof Android app in Facebook

4. Click on Settings and Add Platform and chose Android as your platform.

5. Facebook requires a hash key for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required