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
#add_next_parameters, #add_tags, #add_to_batch, #admin, api_key, #batch, #batch_request?, #check_friendship, configuration_file_path, configuration_file_path=, create, current, current=, #data, #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
472 473 474 |
# File 'lib/facebooker/session.rb', line 472 def login_url super + "&auth_token=#{auth_token}" end |
#post(method, params = {}, use_session = false) ⇒ Object
481 482 483 484 485 486 |
# File 'lib/facebooker/session.rb', line 481 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
476 477 478 479 |
# File 'lib/facebooker/session.rb', line 476 def secret_for_method(method_name) secret = auth_request_methods.include?(method_name) ? super : @secret_from_session secret end |