> >> Does anyone know how to redirect to the facebook permissions page properly? > > Use top.location, not window.location. > > In which place I have to use top.location . > I am using gems > gem 'omniauth', '>= 0.2.6'
I'm not sure how to do it using omniauth. In my apps I do it manually, having code like this: top.location.href = "https://www.facebook.com/dialog/oauth? scope=publish_stream&client_id=<%= fb_app_id %>&redirect_uri=<%= url %>" If I change top.location to window.location, only inner frame gets redirected, having FB chrome around it, and resulting in that big FB logo, which clicked indeed redirect me to the target page. -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.