Problem solved. A patch to the facebooker plugin''s curl_service.rb
file did the trick.
On Jan 8, 10:21 am, David
<furb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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:in `exit_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:in `call''
> [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:in `http_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:in `post_form''
> [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service.rb:
> 66:in `post''
> [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:
> 636:in `post_without_logging''
> [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:
> 647:in `post''
> [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/logging.rb:
> 20:in `log_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:in `log_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:in `populate''
> [RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in
> `email_hashes''
> [RAILS_ROOT]/app/controllers/user_sessions_controller.rb:30:in
> `create''
>
> 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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.