Phonegap Facebook连接插件设置

Van*_*del 8 javascript facebook facebook-javascript-sdk cordova

我正在使用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. 
Run Code Online (Sandbox Code Playgroud)

我使用Facebook登录(网站网址)编辑了网站:http:// localhost /(没有空间,我只添加了它,因为stackoverflow不允许链接'localhost'),我等了几分钟(更多)因为它工作但它仍然无法正常工作.

任何想法我怎么能让它工作?

谢谢

Abd*_*DDN 1

 Write this code in onDeviceReady after creating your application id on facebook


 FB.init({
            appId: "<your appId>",
            nativeInterface: CDV.FB
 });
Run Code Online (Sandbox Code Playgroud)