Shawn Van Ittersum
2008-Feb-15 19:54 UTC
[Facebooker-talk] Execute on creation of FB session
Is there a way to specify a method to be invoked when an FB session is created? I''d like to cache certain user/friend info when the user starts a new session with the app, and then not call the caching function again on existing sessions. Shawn
Hey shawn, I don''t have the code in front of me so this might be wrong. Facebooker creates a new facebooker::session object on each request. So I don''t think you will be able to hook into the create to do this. I typically have a facebook_users table that I use to cache info about users. That being said I think it is against the TOS to store much more than UID, session key and expires. Dave Sent from my iPhone On Feb 15, 2008, at 12:54 PM, Shawn Van Ittersum <svicalifornia at gmail.com > wrote:> Is there a way to specify a method to be invoked when an FB session > is created? I''d like to cache certain user/friend info when the > user starts a new session with the app, and then not call the > caching function again on existing sessions. > > Shawn > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk