Get email from facebook respond Could not get resource

50 Views Asked by At

I use hello for oauth with facebook.

Login is ok, but no data is returned by Facebook. The message is :

Whoops! Could not get resource

hello.init({
       xxxxxxxxxxxxxxxxxxxxxxxxx
    },{ scope: 'email', redirect_uri: RacineSite() });


    hello(type).login({ scope: 'email' });

    hello.on('auth.login', function (auth) {
        if (type == auth.network) {
            hello(type).api('me').then(function (json) {
                alert('Your name is ' + json.email);
            }, function (e) {
                alert('Whoops! ' + e.error.message);
            });
        }
    });

if type = google, its work fine, but with facebook, no email is returned

0

There are 0 best solutions below