2015-02-09 44 views
0

我正在爲我的應用程序創建一個登錄名,其當前位於locahost中。我在Facebook上創建了一個應用程序。如何在本地主機上爲Facebook應用程序執行連接請求

現在,當我嘗試訪問此網址:https://www.facebook.com/dialog/oauth?client_id=my_app_id&redirect_uri=http://localhost:8080/

我得到這個錯誤:

Given URL is not permitted 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.

然後我試圖localhost添加到我的應用程序設置App Domains和我在那裏得到另一個錯誤,不能保存它:

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

我做錯了嗎?或者什麼是爲本地主機做正確的方式?

+0

那麼,消息中提到的URL是否以http(s):// localhost ...開頭? – CBroe 2015-02-09 16:51:49

+0

我試過類似於:'https:// locahost',仍然收到相同的錯誤。 – user1012181 2015-02-09 16:54:09

+0

_你在哪裏嘗試輸入該值? – CBroe 2015-02-09 16:55:49

回答

1

您需要先在應用程序設置中添加一個「平臺」。

添加平臺「網站」,並輸入http://localhost/作爲網站URL。只有在此之後,您才能從本地主機網站調用登錄對話框。

相關問題