Facebook在使用Firebase登录时返回错误消息
我正试图通过以下方式使用Firebase Facebook登录: 将此添加到我的HTML以进行测试:Facebook在使用Firebase登录时返回错误消息,facebook,firebase,facebook-login,firebase-authentication,Facebook,Firebase,Facebook Login,Firebase Authentication,我正试图通过以下方式使用Firebase Facebook登录: 将此添加到我的HTML以进行测试: <div class="fb-like" data-share="true" data-width="450" data-show-faces="true"> </div> 当我在localhost:8000中重新加载页面时,我从Facebook收到以下消息: 应用程序配置不允许给定URL:应用程序的设置不允许一个或多个给定URL。它必须与网站URL或画
<div
class="fb-like"
data-share="true"
data-width="450"
data-show-faces="true">
</div>
当我在localhost:8000中重新加载页面时,我从Facebook收到以下消息:
应用程序配置不允许给定URL:应用程序的设置不允许一个或多个给定URL。它必须与网站URL或画布URL匹配,或者域必须是应用程序域之一的子域
我跟踪了Firebase文档和这个stackoverflow url:但我还是迷路了
在我的应用程序的网站URL下http://localhost:8000/,我也尝试在域名localhost:8000下加入,但Facebook删除了它,说不允许顶级域名。这都是在基本设置下。
在Advanced下,我在有效的OAuth重定向URI下有以下内容:
https://auth.firebase.com/v2//auth/facebook/callback
http://localhost:8080/
https://auth.firebase.com/auth/facebook/callback
我已经在Firebase中启用了Facebook连接。我遗漏了什么?请在上的Facebook应用程序的“应用程序>设置>高级”选项卡中,仔细检查您是否为Firebase应用程序输入了正确有效的OAuth重定向URI。这在Firebase Facebook身份验证文档的seocnd段中有记录。有人知道这一点吗?因为即使在执行了所有必需的步骤之后,我也会遇到相同的错误。@Yatin您解决了这个问题吗?我在Facebook上设置Firebase时遇到问题。我不知道为什么它不起作用。我在我的facebook应用程序的高级安全设置中添加了正确的url。没有AngularM,它对我不起作用。如果你发现了什么,也请告诉我
controller('yokoAppCtrl', function($scope, $firebaseObject, $firebaseAuth, wordsFactory){
var ref = new Firebase("https://resplendent-fire-4284.firebaseio.com/data");
// download the data into a local object
var syncObject = $firebaseObject(ref);
// synchronize the object with a three-way data binding
// click on `index.html` above to see it used in the DOM!
syncObject.$bindTo($scope, "data");
// create an instance of the authentication service
var auth = $firebaseAuth(ref);
// login with Facebook
auth.$authWithOAuthPopup("facebook").then(function(authData) {
console.log("Logged in as:", authData.uid);
}).catch(function(error) {
console.log("Authentication failed:", error);
});
})