简体   繁体   English

如何通过Firebase / ionic配置Facebook登录

[英]How to configure Facebook login via firebase/ionic

Hello I don't get any further with the Facebook authentication in Firebase. 您好,我对Firebase中的Facebook身份验证一无所知。

Under Authorized Domains for OAuth Redirects in Firebase I've set this 3 domains 在Firebase中的OAuth重定向的授权域下,我已经设置了这3个域

  1. localhost 本地主机
  2. 127.0.0.1 127.0.0.1
  3. <-my Firebase url-> <-我的Firebase网址->

And under the Facebook App settings in site-url I have set my firebase url. 在site-url的Facebook App设置下,我设置了我的firebase url。 Also I tried with the method to configure the hosts file with a local domain. 我也尝试了使用本地域配置主机文件的方法。

But always if I want to login to Facebook with my webapp I get this message: The app's settings do not allow the specified URL: One or more URLS are not allowed in the settings. 但是总是如果我想使用我的Web应用程序登录Facebook,我会收到以下消息:该应用程序的设置不允许指定的URL:设置中不允许一个或多个URL。

Does anybody here can tell me how I can fix this? 这里有人可以告诉我如何解决此问题吗? I've already tried all day. 我已经整天尝试了。

In Facebook app settings go to the Advanced tab and under Client OAuth Settings enter the URL that is something like https://auth.firebase.com/v2/yourFirebaseAppName/auth/facebook/callback . 在Facebook应用程序设置中,转到“ 高级”选项卡,然后在“ 客户端OAuth设置”下输入类似于https://auth.firebase.com/v2/yourFirebaseAppName/auth/facebook/callback的URL。

Please note the Advanced tab, not the main Basic tab. 请注意高级选项卡,而不是主基本选项卡。

Along with the settings that you have to do in your Firebase account (and they are straight forward if you've followed the official tutorial ) you don't have to do anything else. 除了您必须在Firebase帐户中进行的设置(如果遵循了官方教程的说明,这些设置很简单)之外,您也无需执行其他任何操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM