2014-06-19 39 views
0

我正在使用本教程来为我的Rails 4应用程序设置简单的OmniAuth身份验证:http://sleekd.com/tutorials/setting-up-omniauth-authentication-with-facebook/如何在当前Facebook Apps网站上为Devise/Omniauth配置Facebook应用程序

问题是,教程是3岁,Facebook应用程序配置站点的组织已经发生了显着变化。

似乎不再是一个“网站网址”框(我会输入http://localhost:3000)。我也没有看到“网站域名”框(我会输入localhost)。

在“基本设置”中有一个“应用程序域”框,但它不会接受localhost。使用localhost这里将导致以下错误:

"This must be derived from Canvas URL, Secure Canvas URL, Unity Binary URL, Site URL, Mobile Site URL, Page Tab URL or Secure Page Tab URL. Check and correct the following domains: localhost"

任何人都可以指向我,我应该输入的信息与最新的Facebook应用程序配置现场这两位?

回答

2

你需要进入设置左边栏,然后+添加平台。选择网站和地点

http://localhost:3000/ 

in Site Url field。

“应用程序域”字段可以为空。

+0

谢谢一堆! – sixty4bit

相关问题