Xue Wei li
2008-Jul-21 16:03 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
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? Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:58:34) [GET] Session ID: hfiauwhfiuwafwfhuiwhf Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"afewagwgawgwefawefwefawefw"} Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature): /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:110:in `verify_signature'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 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 acebooker::Session::SignatureTooOld (Facebooker::Session::SignatureTooOld): /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:112:in `verify_signature'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 When I account for both the session and the signature, I get a "You''ve already installed this application" message from Facebook Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:52:35) [GET] Session ID: cfb49392aw667c9f45fwefwef Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"e4awa52fweafweafwcb79f1438afwegagw3"} Redirected to http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26 Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected. Completed in 0.25199 (3 reqs/sec) | DB: 0.01752 (6%) | 302 Found [ http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1] I''m running on rails 2.1 ruby 1.86, but this has also happened on rails 2.0 and pre-2.0 versions. Thanks in advance to anyone that can help - I''m at a complete loss. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080721/72a14a98/attachment-0001.html>
William Thomas
2008-Jul-21 19:58 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I am also having this problem, anybody else? --- On Mon, 7/21/08, Xue Wei li <xu3w31l1 at gmail.com> wrote: From: Xue Wei li <xu3w31l1 at gmail.com> Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application To: facebooker-talk at rubyforge.org Date: Monday, July 21, 2008, 11:03 AM 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? Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:58:34) [GET] ? Session ID: hfiauwhfiuwafwfhuiwhf ? Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"afewagwgawgwefawefwefawefw"} Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature): ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:110:in `verify_signature'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' ? /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' ? script/server:3 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 acebooker::Session::SignatureTooOld (Facebooker::Session::SignatureTooOld): ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:112:in `verify_signature'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook'' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' ? /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' ? script/server:3 When I account for both the session and the signature, I get a "You''ve already installed this application" message from Facebook Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:52:35) [GET] ? Session ID: cfb49392aw667c9f45fwefwef ? Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"e4awa52fweafweafwcb79f1438afwegagw3"} Redirected to http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26 Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected. Completed in 0.25199 (3 reqs/sec) | DB: 0.01752 (6%) | 302 Found [http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1] I''m running on rails 2.1 ruby 1.86, but this has also happened on rails 2.0 and pre-2.0 versions. Thanks in advance to anyone that can help - I''m at a complete loss. _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080721/facd2750/attachment-0001.html>
Xue Wei li
2008-Jul-22 03:05 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I was thinking that and I could be wrong but you know I looked at example after example and I haven''t seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a ''remove_app'' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma <dav.yaginuma at gmail.com>> to Xue Wei li <xu3w31l1 at gmail.com>date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080721/7da85397/attachment.html>
William Thomas
2008-Jul-22 17:05 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I''m using :ensure_authenticated_to_facebook since I don''t have an application but only want access to the data. ----- Original Message ---- From: Xue Wei li <xu3w31l1 at gmail.com> To: facebooker-talk at rubyforge.org Sent: Monday, July 21, 2008 10:05:17 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application I was thinking that and I could be wrong but you know I looked at example after example and I haven''t seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a ''remove_app'' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma <dav.yaginuma at gmail.com> to Xue Wei li <xu3w31l1 at gmail.com> date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080722/d5287362/attachment.html>
Richard Jordan
2008-Jul-23 02:37 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I have, ensure_application_is_installed_by_facebook_user :except => [:uninstall] in my controller. I can''t see how that would cause problems? Also, my post-add url hits a controller protected by the ensure installed filter. No problem for me there either. One note, make sure in your FB setting your post-add url is your canvas page (not your server like your callback url). Maybe, Dave''s Facebooker Tutorial section "make user add application" would help? FB authentication can be tricky. Richard On Tue, 22 Jul 2008, William Thomas wrote:> I''m using :ensure_authenticated_to_facebook since I don''t have an application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application > > > I was thinking that and I could be wrong but you know I looked at example after example and I haven''t seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a ''remove_app'' method. Am I wrong? What if I wanted to access show facebook data on the first page? > > from Dav Yaginuma <dav.yaginuma at gmail.com> > to Xue Wei li <xu3w31l1 at gmail.com> > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. > > >
Xue Wei li
2008-Jul-23 07:26 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
On Tue, Jul 22, 2008 at 7:37 PM, Richard Jordan <jordanr at cs.washington.edu> wrote:> I have, > ensure_application_is_installed_by_facebook_user :except => [:uninstall] > in my controller. I can''t see how that would cause problems?I did the same thing with my app Also, my post-add url hits a controller protected by the ensure installed> filter. No problem for me there either. One note, make sure in your FB > setting your post-add url is your canvas page (not your server like your > callback url). >same thing here - my app in post add (even though my app fails during the add) works perfectly fine I''m assuming your callback url calls an ''add'' method for your app besides saving facebook uids - does it do anything like app redirection? For some reason, I don''t know why - facebooker things the actual signature during an application add, is my app''s secret key - when it''s supposed to be blank...> > Maybe, Dave''s Facebooker Tutorial section "make user add application" would > help? FB authentication can be tricky. >it was the 1st thing I read... but in my case I need to see the whole picture (a zipped sample app that would help) - snippets only go so far> > Richard > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I''m using :ensure_authenticated_to_facebook since I don''t have an >> application but only want access to the data. >> >> >> >> ----- Original Message ---- >> From: Xue Wei li <xu3w31l1 at gmail.com> >> To: facebooker-talk at rubyforge.org >> Sent: Monday, July 21, 2008 10:05:17 PM >> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> >> >> I was thinking that and I could be wrong but you know I looked at example >> after example and I haven''t seen anyone do an :exclude for the >> ensure_facebook_application_is_installed with exception for a ''remove_app'' >> method. Am I wrong? What if I wanted to access show facebook data on the >> first page? >> >> from Dav Yaginuma <dav.yaginuma at gmail.com> >> to Xue Wei li <xu3w31l1 at gmail.com> >> date Mon, Jul 21, 2008 at 11:21 AM >> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> mailed-by gmail.com >> >> hide details 11:21 AM (8 hours ago) Reply >> >> >> >> I think I saw this, and the problem was the post-add URL defined in the FB >> app page needs to go to a controller action that skips the >> ensure_facebook_application_is_installed filter. >> >> >> >> _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080723/2a85c883/attachment.html>
Richard Jordan
2008-Jul-23 16:10 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
> it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so farI put my first app on RubyForge. It''s pretty bloated, a stupid idea, and very poorly done, but it works (or at least did at one point). If you''re desperate do a, svn checkout svn://rubyforge.org/var/svn/couple-rater Look at trunk/app/controller/application.rb. I put all the install/uninstall code in my base controller.>> >> >> On Tue, 22 Jul 2008, William Thomas wrote: >> >> I''m using :ensure_authenticated_to_facebook since I don''t have an >>> application but only want access to the data. >>> >>> >>> >>> ----- Original Message ---- >>> From: Xue Wei li <xu3w31l1 at gmail.com> >>> To: facebooker-talk at rubyforge.org >>> Sent: Monday, July 21, 2008 10:05:17 PM >>> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>> exception when adding application >>> >>> >>> I was thinking that and I could be wrong but you know I looked at example >>> after example and I haven''t seen anyone do an :exclude for the >>> ensure_facebook_application_is_installed with exception for a ''remove_app'' >>> method. Am I wrong? What if I wanted to access show facebook data on the >>> first page? >>> >>> from Dav Yaginuma <dav.yaginuma at gmail.com> >>> to Xue Wei li <xu3w31l1 at gmail.com> >>> date Mon, Jul 21, 2008 at 11:21 AM >>> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>> exception when adding application >>> mailed-by gmail.com >>> >>> hide details 11:21 AM (8 hours ago) Reply >>> >>> >>> >>> I think I saw this, and the problem was the post-add URL defined in the FB >>> app page needs to go to a controller action that skips the >>> ensure_facebook_application_is_installed filter. >>> >>> >>> >>> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >
Xue Wei li
2008-Jul-24 18:11 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
Thanks Richard - this is a great help =) On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu> wrote:> it was the 1st thing I read... but in my case I need to see the whole >> picture (a zipped sample app that would help) - snippets only go so far >> > > I put my first app on RubyForge. It''s pretty bloated, a stupid idea, and > very poorly done, but it works (or at least did at one point). If you''re > desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the > install/uninstall code in my base controller. > > > >>> >>> On Tue, 22 Jul 2008, William Thomas wrote: >>> >>> I''m using :ensure_authenticated_to_facebook since I don''t have an >>> >>>> application but only want access to the data. >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Xue Wei li <xu3w31l1 at gmail.com> >>>> To: facebooker-talk at rubyforge.org >>>> Sent: Monday, July 21, 2008 10:05:17 PM >>>> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>>> exception when adding application >>>> >>>> >>>> I was thinking that and I could be wrong but you know I looked at >>>> example >>>> after example and I haven''t seen anyone do an :exclude for the >>>> ensure_facebook_application_is_installed with exception for a >>>> ''remove_app'' >>>> method. Am I wrong? What if I wanted to access show facebook data on the >>>> first page? >>>> >>>> from Dav Yaginuma <dav.yaginuma at gmail.com> >>>> to Xue Wei li <xu3w31l1 at gmail.com> >>>> date Mon, Jul 21, 2008 at 11:21 AM >>>> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>>> exception when adding application >>>> mailed-by gmail.com >>>> >>>> hide details 11:21 AM (8 hours ago) Reply >>>> >>>> >>>> >>>> I think I saw this, and the problem was the post-add URL defined in the >>>> FB >>>> app page needs to go to a controller action that skips the >>>> ensure_facebook_application_is_installed filter. >>>> >>>> >>>> >>>> _______________________________________________ >>>> >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080724/58f60b37/attachment-0001.html>
William Thomas
2008-Aug-01 03:27 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I am still having troubles with this exception. I ended up commenting out the piece of code that throws the exception and things work just fine after that... I have before_filter :ensure_authenticated_to_facebook, :only => [ :edit_facebook, :sync_facebook_friends] ...before rails even gets to my edit_facebook action the exception is thrown. What is the intention of the verify_signature method? It does not make sense to me outright ----- Original Message ---- From: Xue Wei li <xu3w31l1 at gmail.com> To: facebooker-talk at rubyforge.org Sent: Thursday, July 24, 2008 1:11:16 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Thanks Richard - this is a great help =) On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu> wrote: it was the 1st thing I read... but in my case I need to see the whole picture (a zipped sample app that would help) - snippets only go so far I put my first app on RubyForge. It''s pretty bloated, a stupid idea, and very poorly done, but it works (or at least did at one point). If you''re desperate do a, svn checkout svn://rubyforge.org/var/svn/couple-rater Look at trunk/app/controller/application.rb. I put all the install/uninstall code in my base controller. On Tue, 22 Jul 2008, William Thomas wrote: I''m using :ensure_authenticated_to_facebook since I don''t have an application but only want access to the data. ----- Original Message ---- From: Xue Wei li <xu3w31l1 at gmail.com> To: facebooker-talk at rubyforge.org Sent: Monday, July 21, 2008 10:05:17 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application I was thinking that and I could be wrong but you know I looked at example after example and I haven''t seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a ''remove_app'' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma <dav.yaginuma at gmail.com> to Xue Wei li <xu3w31l1 at gmail.com> date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080731/138f7217/attachment.html>
Mike Mangino
2008-Aug-01 13:56 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote:> I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu > > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It''s pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you''re desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I''m using :ensure_authenticated_to_facebook since I don''t have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven''t seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > ''remove_app'' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma <dav.yaginuma at gmail.com> > to Xue Wei li <xu3w31l1 at gmail.com> > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
William Thomas
2008-Aug-01 16:15 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
I have been digging a bit more and I think that I know why this is happening. Since I am only asking Facebooker to authenticate my current session with Facebook, I am not getting the expected fb_sig_* parameters from my callback URL. Instead I only get auth_token and therefore the verify_signature method fails. Apparently Facebooker expects ensure_application_is_installed_by_facebook_user before anything happens, and the callback from that provides fb_sig_* stuff. I believe I have 3 options: 1) Continue without the signature verification 2) Create a canvas page in my rails app to handle this and leave it blank or make it link back to my site. 3) Use fb connect - where is this code available? Thoughts? ----- Original Message ---- From: Mike Mangino <mmangino at elevatedrails.com> To: William Thomas <wthomas989 at yahoo.com> Cc: facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 8:56:46 AM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote:> I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu > > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It''s pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you''re desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I''m using :ensure_authenticated_to_facebook since I don''t have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven''t seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > ''remove_app'' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma <dav.yaginuma at gmail.com> > to Xue Wei li <xu3w31l1 at gmail.com> > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080801/65b68a8c/attachment.html>
Mike Mangino
2008-Aug-01 16:20 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
What kind of application is this? Facebook should always send the fb_sig parameters, right? Is this an iframe application? Mike On Aug 1, 2008, at 12:15 PM, William Thomas wrote:> I have been digging a bit more and I think that I know why this is > happening. Since I am only asking Facebooker to authenticate my > current session with Facebook, I am not getting the expected > fb_sig_* parameters from my callback URL. Instead I only get > auth_token and therefore the verify_signature method fails. > > Apparently Facebooker expects > ensure_application_is_installed_by_facebook_user before anything > happens, and the callback from that provides fb_sig_* stuff. > > I believe I have 3 options: > 1) Continue without the signature verification > 2) Create a canvas page in my rails app to handle this and leave it > blank or make it link back to my site. > 3) Use fb connect - where is this code available? > > Thoughts? > > > ----- Original Message ---- > From: Mike Mangino <mmangino at elevatedrails.com> > To: William Thomas <wthomas989 at yahoo.com> > Cc: facebooker-talk at rubyforge.org > Sent: Friday, August 1, 2008 8:56:46 AM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > This method makes sure requests are actually coming from Facebook. > > Without it, anybody could send requests to your application pretending > to be from any user. > > Mike > > On Jul 31, 2008, at 11:27 PM, William Thomas wrote: > > > I am still having troubles with this exception. I ended up > > commenting out the piece of code that throws the exception and > > things work just fine after that... > > > > I have > > before_filter :ensure_authenticated_to_facebook, :only => > > [ :edit_facebook, :sync_facebook_friends] > > > > ...before rails even gets to my edit_facebook action the exception > > is thrown. > > > > What is the intention of the verify_signature method? It does not > > make sense to me outright > > > > ----- Original Message ---- > > From: Xue Wei li <xu3w31l1 at gmail.com> > > To: facebooker-talk at rubyforge.org > > Sent: Thursday, July 24, 2008 1:11:16 PM > > Subject: Re: [Facebooker-talk] > > Facebooker::Session::IncorrectSignature exception when adding > > application > > > > Thanks Richard - this is a great help =) > > > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu > > > wrote: > > it was the 1st thing I read... but in my case I need to see the > whole > > picture (a zipped sample app that would help) - snippets only go so > > far > > > > I put my first app on RubyForge. It''s pretty bloated, a stupid > > idea, and very poorly done, but it works (or at least did at one > > point). If you''re desperate do a, > > svn checkout svn://rubyforge.org/var/svn/couple-rater > > Look at trunk/app/controller/application.rb. I put all the install/ > > uninstall code in my base controller. > > > > > > > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > > > I''m using :ensure_authenticated_to_facebook since I don''t have an > > application but only want access to the data. > > > > > > > > ----- Original Message ---- > > From: Xue Wei li <xu3w31l1 at gmail.com> > > To: facebooker-talk at rubyforge.org > > Sent: Monday, July 21, 2008 10:05:17 PM > > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature > > exception when adding application > > > > > > I was thinking that and I could be wrong but you know I looked at > > example > > after example and I haven''t seen anyone do an :exclude for the > > ensure_facebook_application_is_installed with exception for a > > ''remove_app'' > > method. Am I wrong? What if I wanted to access show facebook data on > > the > > first page? > > > > from Dav Yaginuma <dav.yaginuma at gmail.com> > > to Xue Wei li <xu3w31l1 at gmail.com> > > date Mon, Jul 21, 2008 at 11:21 AM > > subject Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature > > exception when adding application > > mailed-by gmail.com > > > > hide details 11:21 AM (8 hours ago) Reply > > > > > > > > I think I saw this, and the problem was the post-add URL defined in > > the FB > > app page needs to go to a controller action that skips the > > ensure_facebook_application_is_installed filter. > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
David Clements
2008-Aug-01 18:21 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
As a heads up.. this could be caused by the change I made that swapped auth_token auth and fb_sig auth. Dave On Fri, Aug 1, 2008 at 10:20 AM, Mike Mangino <mmangino at elevatedrails.com>wrote:> What kind of application is this? Facebook should always send the fb_sig > parameters, right? Is this an iframe application? > > Mike > > > On Aug 1, 2008, at 12:15 PM, William Thomas wrote: > > I have been digging a bit more and I think that I know why this is >> happening. Since I am only asking Facebooker to authenticate my current >> session with Facebook, I am not getting the expected fb_sig_* parameters >> from my callback URL. Instead I only get auth_token and therefore the >> verify_signature method fails. >> >> Apparently Facebooker expects >> ensure_application_is_installed_by_facebook_user before anything happens, >> and the callback from that provides fb_sig_* stuff. >> >> I believe I have 3 options: >> 1) Continue without the signature verification >> 2) Create a canvas page in my rails app to handle this and leave it blank >> or make it link back to my site. >> 3) Use fb connect - where is this code available? >> >> Thoughts? >> >> >> ----- Original Message ---- >> From: Mike Mangino <mmangino at elevatedrails.com> >> To: William Thomas <wthomas989 at yahoo.com> >> Cc: facebooker-talk at rubyforge.org >> Sent: Friday, August 1, 2008 8:56:46 AM >> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> >> This method makes sure requests are actually coming from Facebook. >> >> Without it, anybody could send requests to your application pretending >> to be from any user. >> >> Mike >> >> On Jul 31, 2008, at 11:27 PM, William Thomas wrote: >> >> > I am still having troubles with this exception. I ended up >> > commenting out the piece of code that throws the exception and >> > things work just fine after that... >> > >> > I have >> > before_filter :ensure_authenticated_to_facebook, :only => >> > [ :edit_facebook, :sync_facebook_friends] >> > >> > ...before rails even gets to my edit_facebook action the exception >> > is thrown. >> > >> > What is the intention of the verify_signature method? It does not >> > make sense to me outright >> > >> > ----- Original Message ---- >> > From: Xue Wei li <xu3w31l1 at gmail.com> >> > To: facebooker-talk at rubyforge.org >> > Sent: Thursday, July 24, 2008 1:11:16 PM >> > Subject: Re: [Facebooker-talk] >> > Facebooker::Session::IncorrectSignature exception when adding >> > application >> > >> > Thanks Richard - this is a great help =) >> > >> > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan < >> jordanr at cs.washington.edu >> > > wrote: >> > it was the 1st thing I read... but in my case I need to see the whole >> > picture (a zipped sample app that would help) - snippets only go so >> > far >> > >> > I put my first app on RubyForge. It''s pretty bloated, a stupid >> > idea, and very poorly done, but it works (or at least did at one >> > point). If you''re desperate do a, >> > svn checkout svn://rubyforge.org/var/svn/couple-rater >> > Look at trunk/app/controller/application.rb. I put all the install/ >> > uninstall code in my base controller. >> > >> > >> > >> > >> > >> > On Tue, 22 Jul 2008, William Thomas wrote: >> > >> > I''m using :ensure_authenticated_to_facebook since I don''t have an >> > application but only want access to the data. >> > >> > >> > >> > ----- Original Message ---- >> > From: Xue Wei li <xu3w31l1 at gmail.com> >> > To: facebooker-talk at rubyforge.org >> > Sent: Monday, July 21, 2008 10:05:17 PM >> > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> > exception when adding application >> > >> > >> > I was thinking that and I could be wrong but you know I looked at >> > example >> > after example and I haven''t seen anyone do an :exclude for the >> > ensure_facebook_application_is_installed with exception for a >> > ''remove_app'' >> > method. Am I wrong? What if I wanted to access show facebook data on >> > the >> > first page? >> > >> > from Dav Yaginuma <dav.yaginuma at gmail.com> >> > to Xue Wei li <xu3w31l1 at gmail.com> >> > date Mon, Jul 21, 2008 at 11:21 AM >> > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> > exception when adding application >> > mailed-by gmail.com >> > >> > hide details 11:21 AM (8 hours ago) Reply >> > >> > >> > >> > I think I saw this, and the problem was the post-add URL defined in >> > the FB >> > app page needs to go to a controller action that skips the >> > ensure_facebook_application_is_installed filter. >> > >> > >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> > >> > >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080801/5a886367/attachment-0001.html>
William Thomas
2008-Aug-01 18:53 UTC
[Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application
What version did you make the change on ? I can''t seem to find it in the git history ----- Original Message ---- From: David Clements <digidigo at gmail.com> To: Mike Mangino <mmangino at elevatedrails.com> Cc: William Thomas <wthomas989 at yahoo.com>; facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 1:21:11 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application As a heads up.. this could be caused by the change I made that swapped auth_token auth and fb_sig auth. Dave On Fri, Aug 1, 2008 at 10:20 AM, Mike Mangino <mmangino at elevatedrails.com> wrote: What kind of application is this? Facebook should always send the fb_sig parameters, right? Is this an iframe application? Mike On Aug 1, 2008, at 12:15 PM, William Thomas wrote: I have been digging a bit more and I think that I know why this is happening. Since I am only asking Facebooker to authenticate my current session with Facebook, I am not getting the expected fb_sig_* parameters from my callback URL. Instead I only get auth_token and therefore the verify_signature method fails. Apparently Facebooker expects ensure_application_is_installed_by_facebook_user before anything happens, and the callback from that provides fb_sig_* stuff. I believe I have 3 options: 1) Continue without the signature verification 2) Create a canvas page in my rails app to handle this and leave it blank or make it link back to my site. 3) Use fb connect - where is this code available? Thoughts? ----- Original Message ---- From: Mike Mangino <mmangino at elevatedrails.com> To: William Thomas <wthomas989 at yahoo.com> Cc: facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 8:56:46 AM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote:> I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan <jordanr at cs.washington.edu > > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It''s pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you''re desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I''m using :ensure_authenticated_to_facebook since I don''t have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li <xu3w31l1 at gmail.com> > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven''t seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > ''remove_app'' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma <dav.yaginuma at gmail.com> > to Xue Wei li <xu3w31l1 at gmail.com> > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080801/959267e0/attachment.html>