When click on the button(“login”) it will open dialogbox with facebook login window. Once we give the correct credentials the dialog box will get exit. If we see in network the status code was 200.
I am new to backendless. Please let me know if i have done any mistake.
this is my code.
function callback(user){
console.log(user);
}
function gotError( err ){
// see more on error handling
console.log( "error message - " + err.message );
console.log( "error code - " + err.statusCode );
}
$scope.login = function(){
permissions = “email”;
facebookFieldsMapping = {email:“email”};
Backendless.UserService.loginWithFacebook(facebookFieldsMapping, permissions, new Backendless.Async(callback, gotError));
}
}
Thank you.