0

我在 iOS 中有一个 phonegap 应用程序,我正在尝试使用 facebook 登录。我正在使用javascript sdk。当我尝试使用 fb.getlogin status 或 fb.login 时,不确定是哪个,它给了我这个错误:

“应用程序配置不允许给定 URL。:应用程序的设置不允许一个或多个给定 URL。它必须与网站 URL 或画布 URL 匹配,或者域必须是应用程序域之一的子域。”

显然,我已经搜索过这个错误,但似乎没有什么能解决我的问题。

我查看了 facebook 应用程序设置,一切似乎都井井有条。

我可能很想用这么少的细节问这个问题,但是,有什么建议和想法吗?

4

1 回答 1

0

I have never used their SDK but I would have to guess that you are making the javascript calls from within your app and the SDK is saying that it doesnt recognize the URL that the call is coming from. Even though your phone doesn't have a URL (though you could give it one but that is a whole different story) it does still have an IP and that IP isnt matching what FB is expecting. I am sure you registered for a FB developer account or something like that and it asked for a URL of where the calls would be coming from. That needs to match. I dont know how you would get around this. I think you need to use the plugin.

于 2013-09-25T19:12:04.463 回答