Is ActionController''s redirect_to method broken by Facebooker? When I try to invoke it and execute through apps.facebook.com, I get a blank page returned, response code 200, no redirect. When I try to connect directly to the server (not through apps.fb), I get the infinite recursion error described minutes ago. Are any of you able to use redirect_to successfully, and if so, any ideas on what''s wrong in my app? Shawn
Added some debug output to facebooker/rails/controller.rb:108 (in redirect_to), and saw this: *args: {:action=>:index} request_is_for_a_facebook_canvas?: true fbml_redirect_tag(*args): <fb:redirect url="" /> So fbml_redirect_tag is incorrectly generating an empty URL. Shawn On Jan 23, 2008 10:55 AM, Shawn Van Ittersum <svicalifornia at gmail.com> wrote:> Is ActionController''s redirect_to method broken by Facebooker? When I try > to invoke it and execute through apps.facebook.com, I get a blank page > returned, response code 200, no redirect. When I try to connect directly to > the server (not through apps.fb), I get the infinite recursion error > described minutes ago. Are any of you able to use redirect_to successfully, > and if so, any ideas on what''s wrong in my app? > > Shawn >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080123/0d491b69/attachment.html
This may have something to do with my experimental version of url_for in fb_url_rewriting. :) Please disregard until I find the root cause... Shawn On Jan 23, 2008 11:06 AM, Shawn Van Ittersum <svicalifornia at gmail.com> wrote:> Added some debug output to facebooker/rails/controller.rb:108 (in > redirect_to), and saw this: > *args: {:action=>:index} > request_is_for_a_facebook_canvas?: true > fbml_redirect_tag(*args): <fb:redirect url="" /> > > So fbml_redirect_tag is incorrectly generating an empty URL. > > Shawn > > On Jan 23, 2008 10:55 AM, Shawn Van Ittersum <svicalifornia at gmail.com> > wrote: > > > Is ActionController''s redirect_to method broken by Facebooker? When I > > try to invoke it and execute through apps.facebook.com, I get a blank > > page returned, response code 200, no redirect. When I try to connect > > directly to the server (not through apps.fb), I get the infinite > > recursion error described minutes ago. Are any of you able to use > > redirect_to successfully, and if so, any ideas on what''s wrong in my app? > > > > Shawn > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080123/0e023ffd/attachment.html
Your args doesn''t include a controller or any of the fb_params. On Jan 23, 2008 1:06 PM, Shawn Van Ittersum <svicalifornia at gmail.com> wrote:> Added some debug output to facebooker/rails/controller.rb:108 (in > redirect_to), and saw this: > > > *args: {:action=>:index} > request_is_for_a_facebook_canvas?: true > fbml_redirect_tag(*args): <fb:redirect url="" /> > > So fbml_redirect_tag is incorrectly generating an empty URL. > > Shawn > > On Jan 23, 2008 10:55 AM, Shawn Van Ittersum <svicalifornia at gmail.com> > wrote: > > Is ActionController''s redirect_to method broken by Facebooker? When I try > to invoke it and execute through apps.facebook.com, I get a blank page > returned, response code 200, no redirect. When I try to connect directly to > the server (not through apps.fb), I get the infinite recursion error > described minutes ago. Are any of you able to use redirect_to successfully, > and if so, any ideas on what''s wrong in my app? > > > > Shawn > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- http://myfitbuddy.com | http://shanesbrain.net | http://crimsonjet.com
A redirect_to call shouldn''t require a controller or fb_params. The controller is implied to be the current controller. I reverted to the current fb_url_rewriting, and I''ve uncovered that somewhere along the way, a :host option is getting added to my redirect_to options. The :host points to my web server, and then FB is redirecting out of apps.facebook.com directly to my server''s hostname, which causes the FB session to be lost. Still tracing where this :host option is being added... Shawn On Wed, 23 Jan 2008 13:41:53 -0600, Shane Vitarana wrote:> Your args doesn''t include a controller or any of the fb_params. > > On Jan 23, 2008 1:06 PM, Shawn Van Ittersum <svicalifornia at gmail.com> wrote: >> Added some debug output to facebooker/rails/controller.rb:108 (in >> redirect_to), and saw this: >> >> >> *args: {:action=>:index} >> request_is_for_a_facebook_canvas?: true >> fbml_redirect_tag(*args): <fb:redirect url="" /> >> >> So fbml_redirect_tag is incorrectly generating an empty URL. >> >> Shawn >> >> On Jan 23, 2008 10:55 AM, Shawn Van Ittersum <svicalifornia at gmail.com> >> wrote: >>> Is ActionController''s redirect_to method broken by Facebooker? When I try >> to invoke it and execute through apps.facebook.com, I get a blank page >> returned, response code 200, no redirect. When I try to connect >> directly to >> the server (not through apps.fb), I get the infinite recursion error >> described minutes ago. Are any of you able to use redirect_to >> successfully, >> and if so, any ideas on what''s wrong in my app? >>> >>> Shawn >>> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > > > -- > http://myfitbuddy.com | http://shanesbrain.net | http://crimsonjet.com