Pesho
2009-Feb-25 15:57 UTC
[Facebooker-talk] passing an object to Ajax callback functions
Hello guys, As far as I understood, any Ajax calls we want to make should be addressed directly to the callback server, and not to a canvas page. This means that we cannot use any facebook-specific data (like the id of the current user) in the function, which handles the Ajax call. I would appreciate if you could tell me a convenient way to pass the facebook_user object to the function, which handles the Ajax call... I am a bit new to Ruby on Rails, so I''ll be grateful if you can also write a small example. THANKS! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090225/da6fd585/attachment.html>
Petar Kalpakliev
2009-Feb-26 08:00 UTC
[Facebooker-talk] passing an object to Ajax callback functions
hey guys, As far as I understood, any Ajax calls we want to make should be addressed directly to the callback server, and not to a canvas page. This means that we cannot use any facebook-specific data (like the id of the current user) in the function, which handles the Ajax call. I would appreciate if you could tell me a convenient way to pass an object to the function, which handles the Ajax call... I am a bit new to Ruby on Rails, so I''ll be grateful if you can also write a small example. Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090226/6fb5ac7b/attachment.html>
Mike Mangino
2009-Feb-26 14:02 UTC
[Facebooker-talk] passing an object to Ajax callback functions
You should still be able to get user information, since Facebook adds parameters on ajax calls. I cover this with examples in my book: http://www.pragprog.com/titles/mmfacer Mike On Feb 26, 2009, at 3:00 AM, Petar Kalpakliev wrote:> hey guys, > > As far as I understood, any Ajax calls we want to make should be > addressed directly to the callback server, and not to a canvas page. > This means that we cannot use any facebook-specific data (like the > id of the current user) in the function, which handles the Ajax > call. I would appreciate if you could tell me a convenient way to > pass an object to the function, which handles the Ajax call... > I am a bit new to Ruby on Rails, so I''ll be grateful if you can also > write a small example. > > Thanks in advance! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com