Facebook integration in JavaScript apps running in the browser and in Cordova.
Why it's awesome
OpenFB is an easy way for Facebook integration in JavaScript apps. No dependency. No Facebook plugin. No Facebook SDK. OpenFB allows you to login to Facebook and executes any Facebook Graph API request.
Getting Started
Install with npm
$ npm install openfb
Install with Yarn
$ yarn add openfb
Install with Bower
$ bower install openfb
Usage
First step, create a Facebook App:
- Access https://developers.facebook.com/apps, and in "My Apps" Tab click
Create App - Define a unique name for your app and click
Create App ID
Second step, create Facebook Login:
- Click
Set Upof the "Facebook Login" section - Now click on the "Settings" of the "Facebook Login" tab in the sidebar navigation
- On the "Client OAuth Settings", add the following URLs in the "Valid OAuth Redirect URIs" field:
- http://localhost:8100/oauthcallback.html (for access using ionic serve)
- https://www.facebook.com/connect/login_success.html (for access from Cordova)
- Click Save Changes
- Now, the
App IDis available
Features
- Integrate your JavaScript application with Facebook.
- Works for both BROWSER-BASED apps and CORDOVA apps.
- Login to Facebook.
- Run any Facebook Graph API request.
- No dependency.
- No Facebook SDK.
- No Facebook Cordova plugin.
- No jQuery.
Extensions
Contributing
Want to contribute? Follow these recommendations.
License
Designed with

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
