2014-06-19 37 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

相關問題