nativescript-stage-facebook-login
by bnussey | v1.0.7
Nativescript Facebook Login plugin
npm i --save nativescript-stage-facebook-login
  • Version: 1.0.7
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  4
    • Last Month: 34

nativescript-stage-facebook-login

Example usage:

    const FacebookLoginHandler = require("nativescript-stage-facebook-login");

// Initialize the handler
FacebookLoginHandler.init(this._env.config.facebook.appId, this._env.config.facebook.appDisplayName);

// Register our callbacks
FacebookLoginHandler.registerCallback(this._loginFacebookSuccessCallback.bind(this), this.loginFacebookCancelCallback.bind(this), this.loginFacebookFailCallback.bind(this), this.loginFacebookDeclinedPermissions.bind(this));

// Start the login process
FacebookLoginHandler.logInWithReadPermissions(["public_profile", "email", "user_friends", "user_birthday"]);