I am trying facebook authentication in angularJs but every time I got this error
here is my code
![var app=angular.module('myApp',['firebase']);
app.controller("SampleCtrl", function($scope) {
var ref = new Firebase("https://socialauthi.firebaseio.com/data");
$scope.tryLogin=function() {
ref.authWithOAuthPopup("facebook", function(error, authData) {
if (error) {
console.log("Login Failed!", error);
} else {
console.log("Authenticated successfully with payload:", authData);
}
});
}
});
I have also added facebook app id and app secret in firebase. Using localhost