【发布时间】:2014-03-07 21:31:20
【问题描述】:
我创建了一个不在任何网络服务器上运行的 HTML5 应用程序。它只是 html 和 javascript,我想让我的用户登录,这样他们就可以用他们的 id 保存他们的分数。
我已经添加了 Facebook javascript 并且它正在运行,但是我收到了这个错误:
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.
这是什么意思?我的 HTML5 应用程序必须在具有域的网络服务器上运行吗?即:http://foo.com/mygame.html?我希望在开发过程中创建我的游戏并在 Chrome 中进行测试,然后将其推送到 Android 和 Windows Phone 等设备上。但我现在不确定这是否能正常工作,因为设备不运行网络服务器。
所以问题是,是否可以使用“纯”HTML5 来实现最终的可移植性,或者我是否必须使用 Phonegap(例如)并在我针对移动设备时实现 Facebook API 的每个设备实现设备?
【问题讨论】:
-
你是直接在文件系统外运行还是在 localhost 中运行?
标签: javascript facebook