X Tutup
The Wayback Machine - https://web.archive.org/web/20201026142329/https://github.com/cjpatoilo/openfb
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Facebook integration in JavaScript apps running in the browser and in Cordova.

Facebook integration in JavaScript apps running in the browser and in Cordova.

Travis Status AppVeyor Status Codacy Status Dependencies Status Version Status Download Status Gitter Chat

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:

  1. Access https://developers.facebook.com/apps, and in "My Apps" Tab click Create App
  2. Define a unique name for your app and click Create App ID

Second step, create Facebook Login:

  1. Click Set Up of the "Facebook Login" section
  2. Now click on the "Settings" of the "Facebook Login" tab in the sidebar navigation
  3. On the "Client OAuth Settings", add the following URLs in the "Valid OAuth Redirect URIs" field:
  1. Click Save Changes
  2. Now, the App ID is 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 by CJ Patoilo. Licensed under the MIT License.

You can’t perform that action at this time.
X Tutup