From
google<http://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
settings<http://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
написал:>
> 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
>>
https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=http://localhost:3000/
>> 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
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/5kZrwBKnImwJ.
For more options, visit https://groups.google.com/groups/opt_out.