Class: Facebooker::Session::Desktop

Inherits:
Facebooker::Session show all
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

Methods inherited from Facebooker::Session

#active_template_bundles, #add_next_parameters, #add_tags, #add_to_batch, #admin, api_key, #application, #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_comments, #get_photos, #get_stream, #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, #remove_comment, secret_key, #secure!, #secure_with!, #secure_with_session_secret!, #secured?, #send_email, #send_notification, #server_cache, #to_yaml, #upload_native_strings, #user, #users, #users_standard

Constructor Details

This class inherits a constructor from Facebooker::Session

Instance Method Details

#login_urlObject



594
595
596
# File 'lib/facebooker/session.rb', line 594

def 
  super + "&auth_token=#{auth_token}"
end

#post(method, params = {}, use_session = false) ⇒ Object



603
604
605
606
607
608
# File 'lib/facebooker/session.rb', line 603

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



598
599
600
601
# File 'lib/facebooker/session.rb', line 598

def secret_for_method(method_name)
  secret = auth_request_methods.include?(method_name) ? super : @secret_from_session
  secret
end