Module: Frankie::EventContext
- Defined in:
- lib/frankie.rb
Instance Method Summary collapse
- #facebook_params ⇒ Object
- #facebook_session ⇒ Object
- #facebook_session_parameters ⇒ Object
- #set_facebook_session ⇒ Object
Instance Method Details
#facebook_params ⇒ Object
52 53 54 |
# File 'lib/frankie.rb', line 52 def facebook_params @facebook_params ||= verified_facebook_params end |
#facebook_session ⇒ Object
35 36 37 |
# File 'lib/frankie.rb', line 35 def facebook_session @facebook_session end |
#facebook_session_parameters ⇒ Object
39 40 41 |
# File 'lib/frankie.rb', line 39 def facebook_session_parameters {:fb_sig_session_key=>params["fb_sig_session_key"]} end |
#set_facebook_session ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/frankie.rb', line 43 def set_facebook_session session_set = session_already_secured? || secure_with_token! || secure_with_facebook_params! if session_set capture_facebook_friends_if_available! Facebooker::Session.current = facebook_session end session_set end |