2014-03-06 40 views
-1

我创建了一个在浏览器中运行的HTML5游戏。我想添加Facebook登录,并从教程中拷贝了内容,并替换为我的appId。我的Facebook登录的域名问题

当我运行它,它指出:

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. 

的问题,这里是我没有一个域名下运行呢?我的游戏现在只是在Chrome中本地运行,但是我想用移动设备(android,ios,wp)使用Phonegap或其他东西来包装它

+0

https://www.google.com/search?q=phonegap+facebook+login – CBroe

+0

将[这里](HTTP://www.androidhive .info/2012/03/android-facebook-connect-tutorial /)有帮助吗? –

回答

0

您是在localhost中运行它吗? 检查这个职位的更多信息,它可以帮助你: Local Facebook App Development using localhost

+0

我正在运行localhost yes。正如我所说的,我现在在Chrome中进行开发和测试,但目标是创建一个Android应用程序。我不能这样做的JavaScript登录?它只支持网站? – Jason94