Firebase facebook身份验证无效

时间:2015-06-08 13:10:07

标签: angularjs facebook firebase

我在angularJs中尝试facebook身份验证,但每次收到此错误enter image description here

这是我的代码

![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

enter image description here

0 个答案:

没有答案