Skip to content
A native Facebook login NPM inspired by bas-meteor-facebook-login
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
es6
.gitignore
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

Native Facebook SDK login for Meteor (v1.7+) with Graph API V3.2

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

This package use cordova-plugin-facebook4

Documentation of the Cordova plugin here

Install - n/a via NPM

meteor npm install meteor-facebook-login

Setup

  • Requirements:
meteor add http
meteor add cordova:cordova-plugin-facebook4@3.1.0 (or latest)
  • Setup cordova plugin (mobile-config.js):
App.configurePlugin('cordova-plugin-facebook4', {
    APP_NAME: 'Name',
    APP_ID: '000000000000'
});

Use

(Server)

import 'meteor-facebook-login';

(Client)

import { FB_API } from 'meteor-facebook-login';

// Login with Facebook
FB_API.login(function(err) {
    if (err) {
        console.log(err);
    } else {
        console.log('login...');
    }
});

Also tested with IOS 12, cordova-ios 4.5.5, cordova 8.1.1, cordova-android 7.1.1

License

MIT

You can’t perform that action at this time.