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
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_query, #get_albums, #get_photos, #get_tags, #infinite?, #initialize, #install_url, #install_url_optional_parameters, #instance_variable_set_value, #instance_variable_value, #login_url_optional_parameters, #marshal_dump, #marshal_load, #pages, #permission_url, #post_file, #post_without_logging, #publish_user_action, #register_template_bundle, secret_key, #secure!, #secure_with!, #secured?, #send_email, #send_notification, #server_cache, #to_yaml, #user
Constructor Details
This class inherits a constructor from Facebooker::Session
Instance Method Details
#login_url ⇒ Object
380 381 382 |
# File 'lib/facebooker/session.rb', line 380 def login_url super + "&auth_token=#{auth_token}" end |
#post(method, params = {}, use_session = false) ⇒ Object
389 390 391 392 393 394 |
# File 'lib/facebooker/session.rb', line 389 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
384 385 386 387 |
# File 'lib/facebooker/session.rb', line 384 def secret_for_method(method_name) secret = auth_request_methods.include?(method_name) ? super : @secret_from_session secret end |