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
(Log into Facebook | Facebook)
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

Log into Facebook | Facebook

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 Log into Facebook.

Also maybe localhost in redirect_uri is denied.

Why you don’t use Oauth2 gem?

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