Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Let's leverage the PhoneGap plug-in to build a small application to login to Facebook and fetch friends' info from Facebook.
Our PhoneGap application will use the Facebook native app to perform a single sign on (SSO) for the user through the Facebook-PhoneGap plug-in.
First, we will need to set up the PhoneGap project for Android. Please refer to Chapter 2 to setup your project for Android. An Android project configuration is shown in Figure 8–1.
Figure 8–1. Eclipse Android project configuration
Download the Facebook-connect plug-in from https://github.com/davejohnson/phonegap-plugin-facebook-connect/downloads.
The Facebook-connect plug-in is a zip file. Unzip it in your favorite folder. The folder structure should be similar to Figure 8–2.