Ngrok和Meteor的Facebook身份验证问题

时间:2014-10-21 21:16:47

标签: facebook meteor ngrok

我正在尝试测试我的meteor应用程序,它使用基于Facebook的登录集成,在本地而不是连续部署它。为此,我设置了ngrok隧道到我的本地主机端口3000,我的本地流星服务器部署在那里。服务器运行没有问题,我已经将Facebook密钥添加到该站点。我还使用了accounts-baseaccounts-uiaccounts-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.

是否还有其他人遇到过这个问题或有想法修复它?

谢谢,

马修

1 个答案:

答案 0 :(得分:0)

这是因为您尚未将自己的应用域添加到Facebook应用设置中。据我所知,Facebook不接受ngrok.io作为有效的应用程序域。

您需要将您的应用部署到您的域,将您的域添加到Facebook应用设置,事情应该正常。