search for: facebookcontrol

Displaying 5 results from an estimated 5 matches for "facebookcontrol".

2008 Jan 23
2
Accessing the current session
I''m trying to fetch a session (and other fb user variables from the session) at the start of my controller, so that all the actions in that controller can make use of it. Here''s the code: class FacebookController < ApplicationController ensure_application_is_installed_by_facebook_user fb_session = session[:facebook_session] # ... action functions here ... end I''m getting this error: TypeError (Symbol as array index): .//app/controllers/facebook_controller.rb:3:in `[]''...
2008 Mar 12
3
a way to restrict who can install your app, for private testing
...ot; + acceptable_uids.to_s raise RuntimeError("This isn''t going to work") end end def get_facebook_session @facebook_session end If it deems the user unacceptable, it actually fails with: NoMethodError (undefined method `RuntimeError'' for FacebookController:Class): I don''t know why, I think it''s got something to do with using a block or something. However, it still does what it''s supposed to do, which is prevent anyone not on the list from seeing your app. --simon -- http://simonwoodside.com
2008 Mar 30
0
undefined method using ensure_authenticated
I''ve stepped through the basics of setting up facebooker, but I consistently see this message: "undefined local variable or method `ensure_authenticated_to_facebook'' for FacebookController:Class" My controller is defined: << class FacebookController < ApplicationController ensure_authenticated_to_facebook def index @facebook_user = session[:facebook_session].user end end >> I have this route: << map.root :controller => "facebook"...
2008 Jan 23
0
bug in external apps
I was connecting directly to my server to try to debug something. I disabled the ensure_application_is_installed_by_facebook_user check, then tried to connect to my index action. Got this error: SystemStackError in FacebookController#index stack level too deep RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb:18:in `default'' vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:119:in `[]''...
2008 Jan 11
18
getting started
Hey all, Been reading through all the old posts (and the docs) to familiarize myself but I still feel a bit lost. I''m on trunk and am having a bit of a hard time knowing where to start with the particular I''m trying to solve. So far, I''ve downloaded backgroundrb, done the basic rails setup, created my worker and started it using `script/backgroundrb start`.