我在angularJs中尝试facebook身份验证,但每次收到此错误
这是我的代码
![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);
}
});
}
});
我还在firebase中添加了facebook app id和app secret。 使用localhost