Facebook redirect

Hi everyone

I have this Application witch won’t redirect, I think it’s because there
is
another redirect, I mean when i redirect to the FB url
(https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=http://localhost:3000/)
I know there is another redirect, but I can’t get rails to follow this
redirect. I had tried to google it, but
I thought, I can’t find the right keywords. My server log look like
this:

Redirected to

Completed 302 Found in 1ms

And my code to redirect is:

redirect_to

https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=#{root_url}

Hope you can help me

Best
Simon

From
googlehttp://developers.facebook.com/docs/authentication/server-side/
:

For security, the redirect_uri must have the same base domain as that
specified in the App Domain property of your app’s
settingshttp://developers.facebook.com/apps,
or be a URL of the form https://apps.facebook.com/YOUR_APP_NAMESPACE.

Also maybe localhost in redirect_uri is denied.

Why you don’t use Oauth2 gem?

, 15 2012 ., 13:22:34 UTC+4 Askilada :