Module: Facebooker::Rails::Controller::ClassMethods
- Defined in:
- lib/facebooker/rails/controller.rb
Instance Method Summary collapse
- #ensure_application_is_installed_by_facebook_user(options = {}) ⇒ Object
-
#ensure_authenticated_to_facebook(options = {}) ⇒ Object
Creates a filter which reqires a user to have already authenticated to Facebook before executing actions.
- #request_comes_from_facebook? ⇒ Boolean
Instance Method Details
#ensure_application_is_installed_by_facebook_user(options = {}) ⇒ Object
345 346 347 |
# File 'lib/facebooker/rails/controller.rb', line 345 def ensure_application_is_installed_by_facebook_user( = {}) before_filter :ensure_application_is_installed_by_facebook_user, end |
#ensure_authenticated_to_facebook(options = {}) ⇒ Object
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.
341 342 343 |
# File 'lib/facebooker/rails/controller.rb', line 341 def ensure_authenticated_to_facebook( = {}) before_filter :ensure_authenticated_to_facebook, end |
#request_comes_from_facebook? ⇒ Boolean
349 350 351 |
# File 'lib/facebooker/rails/controller.rb', line 349 def request_comes_from_facebook? request_is_for_a_facebook_canvas? || request_is_facebook_ajax? end |