Ooops -  I realized I copied my code wrong in my post, but the  
problem is still the same.  The code should look like this.
def sync_user
   @fb_user = facebook_session.user
   @possible_matches = MyUserModel.find(:all, :conditions =>  
["last_name LIKE ?","%#{@fb_user.last_name}%"])
end
Thanks for any help!
Chris
On Sep 18, 2008, at 1:32 PM, Chris Nurre wrote:
> I have been working on a facebook app for a community of athletes  
> for the past few months, but after a brief break in developing I am  
> now constantly receiving timeouts when attempting to gather  
> information on the current facebook user. All I am trying to do is  
> get the facebook user''s name so I can possible sync them with
their
> profile in my own database.
>
> ensure_application_is_installed_by_facebook_user
>
> def index
>   @fb_user = facebook_session.user
>   @possible_matches = MyUserModel.find(:all, :conditions =>  
> ["last_name LIKE
?","%#{@current_facebook_user.last_name}%"])
> end
>
> I even removed the find and discovered the call of last_name(or any  
> value) on the facebook user is the issue. Below is a copy of the  
> error in log. It just appears that any call i make using the API is  
> timing out.
>
> Does anyone have any suggestions as to why the call to the api  
> would be timing out?  Thanks - Chris
>
> Errno::ETIMEDOUT (Connection timed out - connect(2)):
>     /usr/local/lib/ruby/1.8/net/http.rb:560:in `initialize''
>     /usr/local/lib/ruby/1.8/net/http.rb:560:in `open''
>     /usr/local/lib/ruby/1.8/net/http.rb:560:in `connect''
>     /usr/local/lib/ruby/1.8/timeout.rb:48:in `timeout''
>     /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout''
>     /usr/local/lib/ruby/1.8/net/http.rb:560:in `connect''
>     /usr/local/lib/ruby/1.8/net/http.rb:553:in `do_start''
>     /usr/local/lib/ruby/1.8/net/http.rb:542:in `start''
>     /usr/local/lib/ruby/1.8/net/http.rb:404:in `post_form''
>     /vendor/plugins/facebooker/lib/facebooker/service.rb:18:in
`post''
>     /vendor/plugins/facebooker/lib/facebooker/session.rb:466:in
`post''
>     /vendor/plugins/facebooker/lib/facebooker/models/user.rb:111:in  
> `populate''
>     /vendor/plugins/facebooker/lib/facebooker/model.rb:35:in  
> `last_name''
>     /app/controllers/facebook_controller.rb:38:in `sync_user''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/base.rb:1162:in `send''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/base.rb:1162:in `perform_action_without_filters''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/filters.rb:580:in `call_filters''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/filters.rb:573:in
`perform_action_without_benchmark''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/benchmarking.rb:68:in  
> `perform_action_without_rescue''
>     /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/benchmarking.rb:68:in  
> `perform_action_without_rescue''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/rescue.rb:201:in
`perform_action_without_caching''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/caching/sql_cache.rb:13:in `perform_action''
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ 
> active_record/connection_adapters/abstract/query_cache.rb:33:in  
> `cache''
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ 
> active_record/query_cache.rb:8:in `cache''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/caching/sql_cache.rb:12:in `perform_action''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/base.rb:529:in `send''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/base.rb:529:in `process_without_filters''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/filters.rb:569:in  
> `process_without_session_management_support''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/session_management.rb:130:in `process''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/base.rb:389:in `process''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:149:in `handle_request''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:107:in `dispatch''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:104:in `synchronize''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:104:in `dispatch''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:120:in `dispatch_cgi''
>     /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
> action_controller/dispatcher.rb:35:in `dispatch''
>     dispatch.cgi:10