0.1.6 • Published 8 years ago

facebook-promise v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Facebook Promise

Build Status Coverage Status Dependency Status Dependency Status npm version

Loads the Facebook SDK asynchronously and returns it as a Promise.

Installation

npm install facebook-promise --save

Usage

import FBPromise from 'facebook-promise';

// Declare a Facebook Promise and load the Facebook SDK asynchronously
const facebook = new FB8Promise({
  language: 'en_US',
  debug: false,
});

facebook.then((FB) => {
  // Initialize SDK
  FB.init()
});

or

import facebook from 'facebook-promise';

facebook().then((FB) => {
  // Initialize SDK
  FB.init()
});

License

MIT

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago