Facebook 应用程序:Firebase 简单登录 URL 错误 [英] Facebook App: Firebase Simple Login URL error
问题描述
我正在尝试使用 Facebook 登录和 Firebase 简单登录来制作我的第一个应用.我在 http://localhost:8000/
上本地运行系统.我点击登录按钮时收到的错误如下.
I am trying to make my first app using Facebook login and the Firebase Simple Login. I am running the system locally on http://localhost:8000/
. The error I am receiving upon clicking the login button is below.
应用程序配置不允许给定的 URL.:一个或应用程序的设置不允许更多给定的 URL.它必须匹配网站 URL 或画布 URL,或者域必须是子域应用的域之一."
"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
我尝试在生产 facebook 应用程序和 facebook 测试应用程序上运行它,并在我看到的其他论坛帖子之后添加了 URL 重定向和网站平台,但没有任何效果对我有用.有人有什么建议吗?
I have tried running it on a production facebook app and a facebook test app as well as added URL redirects and website platforms following other forum post I have seen, but nothing is working for me. Anyone have any suggestions?
推荐答案
我在 Firebase 文档中发现 https://auth.firebase.com/auth/facebook/callback
必须输入到高级设置下的有效 OAuth 重定向 URI.
I discovered in the Firebase documentation that https://auth.firebase.com/auth/facebook/callback
must be input into the Valid OAuth redirect URIs under the advanced settings.
Facebook 测试应用设置回顾:
Recap of Facebook Test App Settings:
在基本应用设置下:域 = localhost:8080
URL = http://localhost:8080
Under Basic App Settings:
Domain = localhost:8080
URL = http://localhost:8080
在高级应用设置下:有效的 OAuth 重定向 URI [http://localhost:8080/
;https://auth.firebase.com/auth/facebook/callback
]
Under Advanced App Settings:
Valid OAuth redirect URIs [http://localhost:8080/
; https://auth.firebase.com/auth/facebook/callback
]
这篇关于Facebook 应用程序:Firebase 简单登录 URL 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!