Load Facebook's SDK and return a Promise. If it's already loading it won't try to load it again.
npm i --save facebook-sdk-promise
Enable or disable the internal logging
;// it starts "off"loadFBSDKlogging;// [FB API] Facebook SDK script not found, loading now. Add this in the document to have the API available sooner: <script src="//connect.facebook.net/en_US/sdk.js" async></script>// [FB API] Waiting to be ready// [FB API] Ready
The project is in ES6 but transformed into ES5 with rollup-babel-lib-bundler. To do that, run:
npm run build