Native Facebook SDK login for Meteor (v1.4+)
This package use cordova-plugin-facebook4
Documentation of the Cordova plugin here
Install
npm install bas-meteor-facebook-login
Setup
meteor add http
meteor add accounts-facebook
meteor add cordova:cordova-plugin-facebook4@https://github.com/Basgrani-Org/cordova-plugin-facebook4.git#ee8aab56ee6c1f822dcab9ede1db1944100935b4
- Setup cordova plugin (mobile-config.js):
App.configurePlugin('cordova-plugin-facebook4', {
APP_NAME: 'Name',
APP_ID: '000000000000'
});
Use
(Server)
import 'bas-meteor-facebook-login';
(Client)
import { FB_API } from 'bas-meteor-facebook-login';
FB_API.login(function(err) {
if (err) {
console.log(err);
} else {
console.log('login...');
}
});