Class: Facebooker::Session::Desktop
- Inherits:
-
Facebooker::Session
- Object
- Facebooker::Session
- Facebooker::Session::Desktop
- Defined in:
- lib/facebooker/session.rb
Constant Summary
Constants inherited from Facebooker::Session
API_PATH_REST, API_SERVER_BASE_URL, WWW_PATH_ADD, WWW_PATH_INSTALL, WWW_PATH_LOGIN, WWW_SERVER_BASE_URL
Instance Attribute Summary
Attributes inherited from Facebooker::Session
#auth_token, #secret_from_session, #session_key
Instance Method Summary collapse
- #login_url ⇒ Object
- #post(method, params = {}, use_session = false) ⇒ Object
- #secret_for_method(method_name) ⇒ Object
Methods inherited from Facebooker::Session
#active_template_bundles, #add_next_parameters, #add_tags, #add_to_batch, #admin, api_key, #batch, #batch_request?, #cancel_event, #check_friendship, configuration_file_path, configuration_file_path=, #connect_permission_url, create, #create_event, current, current=, #data, #deactivate_template_bundle_by_id, #default_login_url_options, #event_members, #events, #expired?, #fields_to_serialize, #fql_build_object, #fql_multiquery, #fql_query, #get_albums, #get_photos, #get_tags, #infinite?, #initialize, #install_url, #install_url_optional_parameters, #instance_variable_set_value, #instance_variable_value, #is_fan, #login_url_optional_parameters, #marshal_dump, #marshal_load, #mobile, #pages, #permission_url, #post_file, #post_without_logging, #publish_user_action, #register_template_bundle, secret_key, #secure!, #secure_with!, #secure_with_session_secret!, #secured?, #send_email, #send_notification, #server_cache, #to_yaml, #user, #users, #users_standard
Constructor Details
This class inherits a constructor from Facebooker::Session
Instance Method Details
#login_url ⇒ Object
514 515 516 |
# File 'lib/facebooker/session.rb', line 514 def login_url super + "&auth_token=#{auth_token}" end |
#post(method, params = {}, use_session = false) ⇒ Object
523 524 525 526 527 528 |
# File 'lib/facebooker/session.rb', line 523 def post(method, params = {},use_session=false) if method == 'facebook.profile.getFBML' || method == 'facebook.profile.setFBML' raise NonSessionUser.new("User #{@uid} is not the logged in user.") unless @uid == params[:uid] end super end |
#secret_for_method(method_name) ⇒ Object
518 519 520 521 |
# File 'lib/facebooker/session.rb', line 518 def secret_for_method(method_name) secret = auth_request_methods.include?(method_name) ? super : @secret_from_session secret end |