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

Get Bulletproof Android™: Practical Advice for Building Secure Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.