Sunday, June 3, 2012

Facebook login "given URL not allowed by application configuration'

I've added facebook login to my site. However, when I click the button, I get a red box that says:

Invalid Argument

Given URL is not allowed by the Application configuration.

If I continue to login then I get:

API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.

Not sure exactly what the problem is. Any thoughts are appreciated.

Source: Tips4all


  1. Your settings must be incorrect.

    Go to and edit the application you're working on.

    On the "website" tab, look for "Site URL". This should be set to your website's URL ""

    Note that if you're using subdomains, you'll also need to update "Site Domain" to be ""

  2. You can set up a developer application and set the url to
    Make sure to map to localhost on your hosts file

    Works for me

  3. I was getting this problem while using a tunnel because I:

    had the tunnel url:port set in
    the FB app settings
    but was
    accessing the local server by
    pointing my browser to

    once i started punching the tunnel url:port into the browser, i was good to go.

    i'm using Rails and Facebooker, but might help others just the same.

  4. Also check to see if you are missing the www in the url which was on my case

    i was testing on and in the facebook app i had set