Facebook App: Firebase Simple Login URL error

◇◆丶佛笑我妖孽 提交于 2019-11-29 19:37:37

问题


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.

"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."

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?


回答1:


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.

Recap of Facebook Test App Settings:

Under Basic App Settings: Domain = localhost:8080 URL = http://localhost:8080

Under Advanced App Settings: Valid OAuth redirect URIs [http://localhost:8080/ ; https://auth.firebase.com/auth/facebook/callback]




回答2:


with newest version, Valid OAuth redirect must be set as : https://.firebaseapp.com/__/auth/handler



来源:https://stackoverflow.com/questions/25225280/facebook-app-firebase-simple-login-url-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!