Module: Facebooker::Rails::Controller::ClassMethods

Defined in:
lib/facebooker/rails/controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) ensure_application_is_installed_by_facebook_user(options = {})



343
344
345
# File 'lib/facebooker/rails/controller.rb', line 343

def ensure_application_is_installed_by_facebook_user(options = {})
  before_filter :ensure_application_is_installed_by_facebook_user, options
end

- (Object) ensure_authenticated_to_facebook(options = {})

Creates a filter which reqires a user to have already authenticated to Facebook before executing actions. Accepts the same optional options hash which before_filter and after_filter accept.



339
340
341
# File 'lib/facebooker/rails/controller.rb', line 339

def ensure_authenticated_to_facebook(options = {})
  before_filter :ensure_authenticated_to_facebook, options
end

- (Boolean) request_comes_from_facebook?



347
348
349
# File 'lib/facebooker/rails/controller.rb', line 347

def request_comes_from_facebook?
  request_is_for_a_facebook_canvas? || request_is_facebook_ajax?
end