Question: I'm using phonegap plugin to connect to facebook
this one : <https://github.com/phonegap-build/FacebookConnect>

I'm confused about Facebook app settings, when I call FB.init() I get this error message:

```
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. 

```

I edited Website with Facebook Login (site url) to : http:// localhost/ (without the space ofcourse I only added it because stackoverflow doesn't allow a link with 'localhost' in it) and I waited for several minutes (more than one day) for it to work but it's still not working.

any idea how can I get it to work ?

thanks

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

 FB.init({
            appId: "<your appId>",
            nativeInterface: CDV.FB
 });

```
on facebook eit your app settings
set your "Website with Facebook Login" to

```
http://localhost/

```