2013-06-05 27 views
1

即时通讯目前使用Facebook的Javascript SDK和我一直运行到出现在控制台下面的问题时:给定的URL不被应用程序配置所允许。使用Facebook的Javascript SDK

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. 

我读过相关帖子的卡车装载,但仍然可以”让它工作。我在本地使用以下内容:http://localhost:8080/bookbayapp/。在我的Facebook开发应用部分,我有以下:

enter image description here

但再次似乎没有任何工作。我目前正在使用谷歌浏览器进行测试,值得一提的是,我正在使用Facebook插件for Phonegap,但是在测试时,我会注释掉插件js的链接,所以我认为在这样做时应该没有任何问题?

回答

0

对我而言,有效的方法是使用生产服务器的实际URL,然后在hosts文件中添加一行,将所有流量从该URL重定向到localhost。

假设您的网站名为potatoes.com。在 “网站地址” 写:

http://potatoes.com/bookbayapp 

,然后打开您的主机文件(C:\ WINDOWS \ SYSTEM32 \ DRIVERS \ ETC \主机),并添加以下行:

potatoes.com 127.0.0.1 
相关问题