Firebase facebook authentication not working

1.2k views Asked by At

I am trying facebook authentication in angularJs but every time I got this errorenter image description here

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

enter image description here

0

There are 0 answers