fuse-open / fuse-samples

A collection of smaller examples using the various features of Fuse and FuseJS
MIT License
182 stars 153 forks source link

NativeFacebookLogin with email, login and name #38

Closed jesusmartinoza closed 7 years ago

jesusmartinoza commented 7 years ago

Get user info using GrapRequest in Android and iOS

    var FacebookLogin = require("FacebookLogin");

    FacebookLogin.login().then(function(user) {
      console.log(JSON.stringify(user));
      // {"id":"XXXXXXXXX","email":"XXXX@hotmail.com","name":"Jesus Martínez"}
    }, function(err) {
      console.log("Login failed: " + err);
    });
jesusmartinoza commented 7 years ago

I missed that the original code is on the feature-NativeFacebookLogin branch, so I'll make the PR against that.