【发布时间】:2013-05-26 12:12:36
【问题描述】:
我正在使用 phonegap 插件连接到 facebook 这个:https://github.com/phonegap-build/FacebookConnect
我对 Facebook 应用程序设置感到困惑,当我调用 FB.init() 时收到以下错误消息:
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.
我用 Facebook 登录(网站 url)编辑网站到:http://localhost/(没有空格我只添加它,因为 stackoverflow 不允许其中包含 'localhost' 的链接),我等了几个分钟(超过一天)让它工作,但它仍然不工作。
知道如何让它工作吗?
谢谢
【问题讨论】:
-
你试过这个版本,它可能允许更多的定制。 github.com/phonegap/phonegap-facebook-plugin
-
我注意到它试图发送到 facebook 的 url 是 file://android_assets/www/[file_name_here]。我还没有解决我的应用程序中的问题,但是当我更改 FB.init({}) 代码以匹配 github.com/phonegap-build/FacebookConnect/blob/master/example/… 时,错误消失了。
-
曾经解决过这个问题吗?有同样的问题...
标签: javascript facebook facebook-javascript-sdk cordova