Facebook plugin for Cordova and Ionic. Use the Facebook Connect plugin to obtain access to the native FB application on iOS and Android. Requires Cordova…
Use the Facebook Connect plugin to obtain access to the native FB application on iOS and Android.
Requires Cordova plugin: cordova-plugin-facebook-connect. For more info, please see the Facebook Connect.
Installation
To use the FB plugin, you first have to create a new Facebook App inside of the Facebook developer portal at https://developers.facebook.com/apps.
Retrieve the App ID and App Name.
Then type in the following command in your Terminal, where APP_ID and APP_NAME are the values from the Facebook Developer portal.
You can also edit the id to whatever you'd like it to be.
iOS Install
Under 'Bundle ID', add the id from your config.xml file:
Android Install
Under 'Google Play Package Name', add the id from your config.xml file:
And that's it! You can now make calls to Facebook using the plugin.
Events
App events allow you to understand the makeup of users engaging with your app, measure the performance of your Facebook mobile app ads, and reach specific sets of your users with Facebook mobile app ads.