Facebooker SystemExit

Hello,

I have a problem with an application using facebooker plugin that
works fine locally using Mongrel but breaks in fastcgi production
environment.

I am using the authlogic_facebook_connect plugin with
facebook_skip_new_user_creation true so that I can have the user sign
up with real email, or check email hash to see if they are already in
the system.

The following code snippet isolates the problem I am facing:

before_filter :set_facebook_session
def dummy
raise “no facebook session” if facebook_session.nil?
if facebook_session
user = facebook_session.user
if user
emails = facebook_session.user.email_hashes
if emails
raise emails.inspect
else
raise “no dice”
end
else
raise “no facebook user”
end
end
end

When it gets to the “emails = facebook_session.user.email_hashes”
line, it throws a SystemExit error. Here is the relevant portion of
the stack trace:

/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/fcgi_handler.rb:
160:in exit' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/fcgi_handler.rb: 160:inexit_now_handler’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
to_proc' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service/ curl_service.rb:9:incall’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service/
curl_service.rb:9:in perform' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service/ curl_service.rb:9:inhttp_post’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service/
curl_service.rb:9:in post_form' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service.rb: 78:inpost_form’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service.rb:
66:in post' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb: 636:inpost_without_logging’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:
647:in post' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/logging.rb: 20:inlog_fb_api’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/core_ext/benchmark.rb:10:in realtime' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/logging.rb: 20:inlog_fb_api’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:
646:in post' [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/models/user.rb: 194:inpopulate’
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in
email_hashes' [RAILS_ROOT]/app/controllers/user_sessions_controller.rb:30:increate’

Looks like it’s having a problem making a curl request to facebook.
Mind you, this is after facebook has already connected. Any ideas
would be greatly appreciated!

Thanks,
DF

Problem solved. A patch to the facebooker plugin’s curl_service.rb
file did the trick.