Quick Note About rFacebook, Edge Rails, and Sessions.

October 19th, 2007 by Justin Ball

This problem may not be specific to rFacebook, but when I added acts_as_facebook_user to my user model and then made a call like:


my_user.first_name

I would get an 500 internal server error. I checked the log and saw this:
CGI::Session::CookieStore::CookieOverflow

I found that if I changed the app so that it uses db sessions everything started working.

Uncomment this line in environment.rb:

config.action_controller.session_store = :active_record_store

Make sure to add the session tables to your db by using the rake task and you should be good to go. Note that I am running edge rails so keep that in mind if you use this advice.

Tags:   · · 1 Comment

Leave A Comment

1 response so far ↓