2014-12-03 13 views
1

我已經生成了一個完整的堆棧服務器Yeoman的generator-angular-fullstack作爲我的iOS應用程序的後端,現在我想使用Facebook OAuth實現,但是我可以' t似乎找到了我需要傳遞給我的服務器以及我需要在Facebook上設置的內容。使用Facebook在全速生成器上登錄

當我將我的客戶端ID和密碼添加到config/local.env.sample.js並對/ auth/facebook執行GET請求時;我得到這個錯誤:

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. 

我不知道在哪裏,我需要設置這個網址,似乎無法找到它在Facebook本身,我真的不知道去哪裏找我的服務器上。另外,如果有人可以找到這個Fullstack生成器的Facebook OAuth的示例實現,請在此處發佈。

回答

1

嘗試重命名config/local.env.sample.jsconfig/local.env.js然後檢查文件server/auth/facebook/

該Cookie是由函數setTokenCookie()server/auth/auth.service.js

設置