Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 861
Joe Avatar asked Aug 31 '10 15:08

Joe


5 Answers

Your settings must be incorrect.

Go to http://www.facebook.com/developers/ 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 "http://yoursite.com/"

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

like image 73
marcgg Avatar answered Nov 05 '22 22:11

marcgg


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

Works for me

like image 24
davvilla Avatar answered Nov 05 '22 21:11

davvilla


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

i was testing on http://www.mywebsite.com and in the facebook app i had set http://mywebsite.com

like image 4
Gafitescu Daniel Avatar answered Nov 05 '22 20:11

Gafitescu Daniel


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

  1. had the tunnel url:port set in the FB app settings
  2. but was accessing the local server by pointing my browser to "http://localhost:3000"

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.

like image 2
whatbird Avatar answered Nov 05 '22 22:11

whatbird


According to http://developers.facebook.com/docs/reference/dialogs/oauth/

for me worked

https://apps.facebook.com/YOUR_APP_NAMESPACE (watch fot http:// or https:// issue)

like image 1
michalzuber Avatar answered Nov 05 '22 21:11

michalzuber