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