This is the official plugin for Facebook in Apache Cordova/PhoneGap!

The Facebook plugin for Apache Cordova allows you to use the same JavaScript code in your Cordova application as you use in your web application. However, unlike in the browser, the Cordova application will use the native Facebook app to perform Single Sign On for the user. If this is not possible then the sign on will degrade gracefully using the standard dialog based authentication.

More information could be available on the GitHub README.

Installation is done via the Cordova CLI.

Install Facebook Connect using the latest version from GitHub:

$ cordova plugin add

Install the latest published version (0.11.0):

$ cordova plugin add com.phonegap.plugins.facebookconnect

Supported Platforms
  • Android
  • BlackBerry 10
  • Fire OS
  • Firefox OS
  • iOS
  • Ubuntu
  • Windows 8
  • Windows Phone 7
  • Windows Phone 8
Supported Engines
  • cordova