[Facebooker-talk] Does anyone have an example of using facebooker with Infinite Sessions
S. Woodside
sbwoodside at yahoo.com
Sat Apr 19 22:35:43 EDT 2008
Here's a real simple little test I put together based on this thread
-- it works for me. Nice.
--simon
def test_infinite_session
if params['id'].nil? then raise "no FB ID given" end
facebook_uid = params['id']
# do we have UID in our database
wu = WebUser.find_by_facebook_uid facebook_uid
@facebook_session = Facebooker::Session.create
(Facebooker::Session.api_key, Facebooker::Session.secret_key)
@facebook_session.secure_with!(wu.facebook_session_key,
wu.facebook_uid, 0)
render :text => @facebook_session.events.to_s
end
--
http://simonwoodside.com
More information about the Facebooker-talk
mailing list