2015-06-14 73 views
0

Facebook應用的App Domain設置爲domain.comSite URL設置爲http://domain.com。從domain.com的API請求經過罰款。然而,來自lvh.domain.com的請求給出以下錯誤:Facebook API不允許子域

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. 

我在做什麼錯?將Site URL設置爲lvh.domain.com也不能解決問題。

其中一個特點是lvh.domain.com指向localhost並且在端口8000而不是默認的http端口上訪問。

domain底塗在實際域)

+0

你嘗試使用lvh.domain.com:8000作爲網站的網址? – luschn

+0

@luschn是的。即使我這樣做,唯一可行的域名是domain.com。 –

回答

0

添加lvh.domain.com到您的應用程序域的列表。您的網站網址是好的,如果它的域名網址