search for: fb_sig_in_canva

Displaying 9 results from an estimated 9 matches for "fb_sig_in_canva".

Did you mean: fb_sig_in_canvas
2008 Jul 11
0
canvas url rewriting fails for templates loaded through ajax
I just encountered a bug that caused the links in my partials to be generated as non-canvas routes when the partial was loaded via ajax. This bug is due to facebooker url rewriting checking for fb_sig_in_canvas to determine if the application is running in or outside a canvas, and fb_sig_in_canvas is not sent for ajax requests. My hacked together patch diff is below, sorry I didn''t have a chance to write tests or closely verify that my changes won''t break anything else. a/vendor/plugi...
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
...as] if option_override == false # important to check for false. nil should use default behavior options[:only_path] = false RAILS_DEFAULT_LOGGER.debug "set options[:only_path] to false" return false end option_override || @request.parameters["fb_sig_in_canvas"] == "1" || @request.parameters[:fb_sig_in_canvas] == "1" end The pertinent change is that if they sent canvas to false, I add the "only_path" option and set it to false. I''m also seeing a problem related to this with the Publisher class, but I&...
2008 May 15
3
Facebooker support for iframe apps
...er. ( via a frustratingly poorly documented algorithm ) I found that for my facebook application that uses an iframe, facebooker didn''t seem to be performing this validation. Digging into the code, I found in controller.rb, that the validation is only performed if the parameter ''fb_sig_in_canvas'' is present, and when the request is for an iframe the parameter ''fb_sig_in_iframe'' is sent instead. So, I patched it to also perform the validation in that case as well. Does this make any sense? Is this patch something worth submitting? If so. how should I do that?...
2007 Nov 29
7
Sessions Not Working In Production Mode
I am completely stumped by this problem, and would welcome any suggestions people could provide. My application uses active-record-based sessions. In development mode, the app works fine with sessions, no problems. But in production mode, the process works for a while (a few hours, maybe more), but at a certain point the session mechanism stop working. It looks like the system stops storing new
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2007 Dec 20
0
Relative URL fix
...d'' end I changed the "test_url_for_doesnt_include_url_root_when_not_linked_to_canvas" like so: def test_url_for_doesnt_include_url_root_when_not_linked_to_canvas @controller = NonFacebookController.new get :link_test,example_rails_params_including_fb.merge (:fb_sig_in_canvas=>0,:canvas=>false) assert !@response.body.match(/root/) end All tests pass again. Please let me know if this seems like a reasonable approach. I am happy to bundle this into a diff if anyone would like it added to the facebooker core. Later, Mark def test_url_for_doesnt_in...
2008 Mar 11
0
Facebooker-talk Digest, Vol 5, Issue 12
...fb_params = { "fb_sig_time" => Time.now.to_f, "fb_sig_locale" => "en_US", "fb_sig_session_key" => "d82ebe8648254d4cef7d993a-1953401", "fb_sig_position_fix" => "1", "fb_sig_in_canvas" => "1", "fb_sig_request_method" => http_verb.to_s.upcase, "fb_sig_expires" => "0", "fb_sig_added" => "1", "fb_sig_api_key" => Facebooker::Session.api_key, &q...
2008 Mar 11
0
Facebook_request in unit tests
...{ }) fb_params = { "fb_sig_time" => Time.now.to_f, "fb_sig_locale" => "en_US", "fb_sig_session_key" => "d82ebe8648254d4cef7d993a-1953401", "fb_sig_position_fix" => "1", "fb_sig_in_canvas" => "1", "fb_sig_request_method" => http_verb.to_s.upcase, "fb_sig_expires" => "0", "fb_sig_added" => "1", "fb_sig_api_key" => Facebooker::Session.api_key, "f...
2007 Dec 05
7
Better RESTful routes with fb_sig_request_method
With the new fb_sig_request_method provided by Facebook, I''ve patched shanev''s pseudo-resource routes to generate restful routes, minus some exceptions. The announcement: http://www.facebook.com/developers/message.php#msg_126 Patch is submitted here: http://rubyforge.org/tracker/index.php?func=detail&aid=16105&group_id=4187&atid=16132 Blog entry about it: