Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.37 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.37 KB

Facebook Requirements and Set-Up [Web App]

To use this plugin you will need to make sure you've registered your Facebook app with Facebook and have an APP_ID https://developers.facebook.com/apps.

This guide is for browser only. View the other guides for native setup.

www/facebookConnectPlugin.js contains the JavaScript SDK and API file. The API matches as close as possible to the native APIs.

Example App

For localhost testing on OS X see the Localhost guide

Install

This plugin requires Cordova CLI.

To install the plugin in your app, execute the following (replace variables where necessary):

# Create initial Cordova app
$ cordova create myApp
$ cd myApp/
$ cordova platform add browser

# Remember to replace APP_ID and APP_NAME variables
$ cordova plugin add cordova-plugin-fbsdk --save --variable APP_ID="123456789" --variable APP_NAME="myApplication"

Change Facebook JavaScript SDK version

$ cordova plugin add cordova-plugin-fbsdk --save --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable FACEBOOK_BROWSER_SDK_VERSION="v14.0"

Setup

  • In your facebook develop website settings page, add your server's domain to app domain (or localhost for testing).

image