I found a reference to using attachment_fu and followed the lead of it but having an issue with the redirect_to that renders the fb:render tag - In my form I''m setting the canvas to false, file is being uploaded / save fine but when I attempt to redirect: redirect_to :action => :new, :canvas => true Unfortunatly it looks like my callback URL is getting printed twice, e.g. http://myserver.com/my_action/my_action/new I suppose I could write a helper to pull it out but there''s probably a better way.. Any thoughts? Thanks
Some updates on this - using the new debug features in 2.0 [very nice btw] I managed to determine that in the ~/rails/controller.rb the code is *not dropping into fbml_redirect_tag [request_is_for_a_facebook_canvas? returns false] and is instead getting sent to the super [the rails controller I''m assuming] - so yea basically stuck - can anybody provide any hints as to where I should be looking in the code? Or even a description of the difference between :canvas => true and :canvas => :false in facebooker terms.. Thanks! On Feb 2, 2008 3:57 AM, John Bresnik <jbresnik at gmail.com> wrote:> I found a reference to using attachment_fu and followed the lead of it > but having an issue with the redirect_to that renders the fb:render > tag - In my form I''m setting the canvas to false, file is being > uploaded / save fine but when I attempt to redirect: > > redirect_to :action => :new, :canvas => true > > Unfortunatly it looks like my callback URL is getting printed twice, e.g. > > http://myserver.com/my_action/my_action/new > > I suppose I could write a helper to pull it out but there''s probably a > better way.. Any thoughts? > > Thanks >
If in the form you are setting :canvas => false then you would not want to render an fbml_redirect_tag. Rendering an fbml_redirect tag would be send fbml directly to the user''s browser. I''m not sure why it is including my_action twice in the url. Is my_action the name of a controller? It seems like new is probably the action. What does your facebooker.yml look like? What revision of facebooker are you using? Michael On Feb 4, 2008, at 1:38 PM, John Bresnik wrote:> Some updates on this - using the new debug features in 2.0 [very nice > btw] I managed to determine that in the ~/rails/controller.rb the code > is *not dropping into fbml_redirect_tag > [request_is_for_a_facebook_canvas? returns false] and is instead > getting sent to the super [the rails controller I''m assuming] - so yea > basically stuck - can anybody provide any hints as to where I should > be looking in the code? Or even a description of the difference > between :canvas => true and :canvas => :false in facebooker terms.. > Thanks! > > > On Feb 2, 2008 3:57 AM, John Bresnik <jbresnik at gmail.com> wrote: >> I found a reference to using attachment_fu and followed the lead of >> it >> but having an issue with the redirect_to that renders the fb:render >> tag - In my form I''m setting the canvas to false, file is being >> uploaded / save fine but when I attempt to redirect: >> >> redirect_to :action => :new, :canvas => true >> >> Unfortunatly it looks like my callback URL is getting printed >> twice, e.g. >> >> http://myserver.com/my_action/my_action/new >> >> I suppose I could write a helper to pull it out but there''s >> probably a >> better way.. Any thoughts? >> >> Thanks >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
For the archives - Mike suggested not using a path in the callback URL - that seemed to do it.. Thanks Mike! On Feb 4, 2008 11:38 AM, John Bresnik <jbresnik at gmail.com> wrote:> Some updates on this - using the new debug features in 2.0 [very nice > btw] I managed to determine that in the ~/rails/controller.rb the code > is *not dropping into fbml_redirect_tag > [request_is_for_a_facebook_canvas? returns false] and is instead > getting sent to the super [the rails controller I''m assuming] - so yea > basically stuck - can anybody provide any hints as to where I should > be looking in the code? Or even a description of the difference > between :canvas => true and :canvas => :false in facebooker terms.. > Thanks! > > > > On Feb 2, 2008 3:57 AM, John Bresnik <jbresnik at gmail.com> wrote: > > I found a reference to using attachment_fu and followed the lead of it > > but having an issue with the redirect_to that renders the fb:render > > tag - In my form I''m setting the canvas to false, file is being > > uploaded / save fine but when I attempt to redirect: > > > > redirect_to :action => :new, :canvas => true > > > > Unfortunatly it looks like my callback URL is getting printed twice, e.g. > > > > http://myserver.com/my_action/my_action/new > > > > I suppose I could write a helper to pull it out but there''s probably a > > better way.. Any thoughts? > > > > Thanks > > >