O'Reilly logo

PhoneGap and AngularJS for Cross-platform Development by Eugene Liang Yuxian

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

Facebook login for PhoneGap

PhoneGap has gone through quite a bit of changes not only for the main library, but also the plugin system. In this section, you will see that we can quickly install PhoneGap plugins using the command-line tool, without the usual multiple steps that we have to follow if we want to install it manually.

Installing the Facebook plugin

Since we have already added iOS and Android platforms, this plugin installation will add plugins for both iOS and Android. To install the Facebook plugin, you will need to navigate to your todo app project. Next, issue the following command:

cordova plugin add
https://github.com/phonegap/phonegap-facebook-plugin, --variable APP_ID="XXXXX" --variable APP_NAME="AngularPhoneGapTest".

You will ...

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