similar to: Facebook_request in unit tests

Displaying 9 results from an estimated 9 matches similar to: "Facebook_request in unit tests"

2008 Mar 11
0
Facebooker-talk Digest, Vol 5, Issue 12
Hi all, I wanted to test requests from internal facebook apps, so I''ve been mimicking FBML requests from facebook in my tests using the following: def test_can_facebook_internal_app_login fb_login_as :facebooker num_of_members = Member.count facebook_request :get, :home assert_response :success assert_equal num_of_members, Member.count
2008 Jan 23
4
redirect_to broken?
Is ActionController''s redirect_to method broken by Facebooker? When I try to invoke it and execute through apps.facebook.com, I get a blank page returned, response code 200, no redirect. When I try to connect directly to the server (not through apps.fb), I get the infinite recursion error described minutes ago. Are any of you able to use redirect_to successfully, and if so, any ideas
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All, I''m trying to use a form to upload a photo that I will save using attachment_fu. I''m very new to Facebookr so I apologize if this is covered somewhere, but I''m kind of stumped. Here''s what I''m doing now: <% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id => params[:id] }, :html => {
2008 Mar 11
0
How to get a facebook session for desktop applications (or unit tests?)
Normally, in a rails app, all one would have to do is call set_facebook_session, or the ensure_* filters to get a valid session. I''ve been looking through the sessions code to figure out how to get a valid session for desktop applications (or unit tests)--basically outside of rails controller. As far as I can ascertain, you should just be able to do this: require
2008 Mar 27
0
handling post-remove URL / uninstall of application
Hi there, I''ve configured my post-remove URL (which has to be directly to my site, not an apps.facebook.com URL) and now I''m trying to figure out how to handle this. It''s poorly documented here: http://wiki.developers.facebook.com/index.php/Post-Remove_URL It seems as though support for this is currently not yet in Facebooker. In order to get it to work, it
2008 Sep 08
0
InvalidAuthenticityToken when user adds application through facebook registration
If a user that has not yet signed up for Facebook attempts to visit an application page facebook presents them with a registration form. After this form is completed, the application is automatically added to the user''s account and Facebook displays the following message: Welcome George Tesster! Your account has been created. [application] has been added to your account. Facebook also
2008 Mar 20
2
Anyone having problems with asset_host not getting set up right?
Hey All, I think I found a bug but I would be suprised since it would cause major problems. We setup the asset_host in init.rb with: if File.exist?(facebook_config) FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV] ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key''] ENV[''FACEBOOK_SECRET_KEY''] =
2008 Jan 24
5
Is there a test for setting the session ID to the fb_sig_session_key param?
Hey all, I have a patch that fixes a problem I am having with IFramed pages in rails 2.0. I am relying on the session being retrieved via fb_sig_session_key. I am looking for the test code that tests this functionality but I can''t seem to find it. So you on the list today Chad, gotta pointer for me? Thanks, I want to get a test in for this fix, Dave
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
Replaced the TurboGears 2 reference implementation with a simpler Django server. This implementation has worked out the server interface for an HTTP awake and config request. Started working on this ready portion, but nothing is ready yet. THIS IS A WORK IN PROGRESS: This patch is solely meant to solicit feedback. Please reply with suggestions and improvement ideas. Thanks. :) Signed-off-by: