views:

1782

answers:

3

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.

+2  A: 

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"

marcgg
Thanks for the response! Yeah ... that's what I thought, but have this: http://www.zaboof.com/ for website's URL and this: zaboof.com for the site domain. Hmm .... Any other thoughts?
Joe
I'm wondering if I didn't set the next URL (I'm assuming this is the URL that we go to after login) correctly?
Joe
Never mind. I'm an idiot! The problem was that I was testing the login locally, so needed a localhost URL in application config settings. Thanks very much for you're help.
Joe
@joe: no problem! To test everything properly you might want to open some kind of tunnel so that facebook doesn't have to handle local URLs and possibily break because of that
marcgg
How can I do that?
Joe
@joe: you'll need some kind of server ~ http://en.wikipedia.org/wiki/Tunneling_protocol
marcgg
A: 

Joe i m facing the same problem as you But i m not getting the way u told will you be bit ellabotarive so that in detail i can know where should i do the changes. please Ans ASAP

Arati
A: 

how can i have a widget on multiple sites that uses the Fb.ui? do i need to do an app for each site where the widget is? how do i handle multiple site otherwise?

frank