<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>I am also having this problem, anybody else?<br><br>--- On <b>Mon, 7/21/08, Xue Wei li <i><xu3w31l1@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Xue Wei li <xu3w31l1@gmail.com><br>Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application<br>To: facebooker-talk@rubyforge.org<br>Date: Monday, July 21, 2008, 11:03 AM<br><br><div id="yiv1284079875"><div dir="ltr"><p>Whenever a user adds my application Facebooker will throw a Facebooker::Session::IncorrectSignature exception. Upon further investigation I was finding that while the expected signature was blank, the actual signature was the facebook app secret key. why is this happening?<br>
</p><p>Processing FacebookGroupsController#index (for <a rel="nofollow" target="_blank" href="http://127.0.0.1">127.0.0.1</a> at 2008-07-21 08:58:34) [GET]<br> Session ID: hfiauwhfiuwafwfhuiwhf<br> Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"afewagwgawgwefawefwefawefw"}</p>
<p><br>Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature):<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:110:in `verify_signature'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'<br>
/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'<br>
/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'<br>
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'<br> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br>
/opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'<br> /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br>
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br> script/server:3<br><br><br></p><p>If I account for the signature to be blank on install, I get a SignatureTooOld exception; since facebook_sig_params['time'] is an empty value</p>
<p>acebooker::Session::SignatureTooOld (Facebooker::Session::SignatureTooOld):<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:112:in `verify_signature'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'<br>
/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'<br>
/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'<br> /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'<br>
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'<br> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'<br> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'<br> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'<br>
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'<br>
/opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'<br> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'<br>
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'<br> /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39<br> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br>
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br> script/server:3<br><br><br></p><p>When I account for both the session and the signature, I get a "You've already installed this application" message from Facebook</p>
<p>Processing FacebookGroupsController#index (for <a rel="nofollow" target="_blank" href="http://127.0.0.1">127.0.0.1</a> at 2008-07-21 08:52:35) [GET]<br> Session ID: cfb49392aw667c9f45fwefwef<br> Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"e4awa52fweafweafwcb79f1438afwegagw3"}<br>
Redirected to <a rel="nofollow" target="_blank" href="http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26">http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26</a><br>
Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected.<br>Completed in 0.25199 (3 reqs/sec) | DB: 0.01752 (6%) | 302 Found [<a rel="nofollow" target="_blank" href="http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1">http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1</a>]<br>
<br>I'm running on rails 2.1 ruby 1.86, but this has also happened on rails 2.0 and pre-2.0 versions.<br></p><p>Thanks in advance to anyone that can help - I'm at a complete loss.</p></div>
</div><pre>_______________________________________________<br>Facebooker-talk mailing list<br>Facebooker-talk@rubyforge.org<br>http://rubyforge.org/mailman/listinfo/facebooker-talk</pre></blockquote></td></tr></table><br>