我正在尝试测试我的meteor应用程序,它使用基于Facebook的登录集成,在本地而不是连续部署它。为此,我设置了ngrok隧道到我的本地主机端口3000,我的本地流星服务器部署在那里。服务器运行没有问题,我已经将Facebook密钥添加到该站点。我还使用了accounts-base
,accounts-ui
和accounts-facebook
个包。但是,当我单击页面顶部的Sign in with Facebook
按钮时,出现以下错误消息:
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.
是否还有其他人遇到过这个问题或有想法修复它?
谢谢,
马修
答案 0 :(得分:0)
这是因为您尚未将自己的应用域添加到Facebook应用设置中。据我所知,Facebook不接受ngrok.io作为有效的应用程序域。
您需要将您的应用部署到您的域,将您的域添加到Facebook应用设置,事情应该正常。