[Facebooker-talk] Does anyone have an example of using facebooker with Infinite Sessions
Mike Mangino
mmangino at elevatedrails.com
Tue Apr 22 15:36:56 EDT 2008
Even better, just store the session key:
def store_session(session_key)
if self.session_key != session_key
update_attribute(:session_key,session_key)
end
end
def facebook_session
@facebook_session ||=
returning Facebooker::Session.create do |session|
session.secure_with!(session_key,facebook_id,1.day.from_now)
end
end
Mike
On Apr 22, 2008, at 1:52 PM, William Thomas wrote:
> It may be easier to serialize your session with session.to_yaml in
> your db. You can then reconstitute the session
>
> session = YAML::load(user.facebook_session_yaml)
>
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
> Try it now. _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
--
Mike Mangino
http://www.elevatedrails.com
More information about the Facebooker-talk
mailing list