2.0.2 • Published 8 years ago

load-fb-sdk v2.0.2

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

load-fb-sdk

Small wrapper to load the Facebook JavaScript SDK.

Install

npm install load-fb-sdk

Usage

var loadFbSdk = require('load-fb-sdk');
var fbInitOpts = {
  appId: YOUR_FB_APP_ID,
  version: 'v2.5',
  ...
};

// This must be set before running loadFbSdk() the first time.
window.__LOAD_FB_SDK = fbInitOpts;
loadFbSdk(function (err, FB) {
  if (err) {
    return console.log(err);
  }
  // Do stuff with the Facbeook JS SDK.
});

See FB JS SDK documentation for more details about the options and api.

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago