Class: Facebooker::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/facebooker/application.rb

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ Application

Returns a new instance of Application.



3
4
5
# File 'lib/facebooker/application.rb', line 3

def initialize(session)
  @session = session
end

Instance Method Details

#get_public_info(properties) ⇒ Object

properties: Hash of properties of the desired application. Specify exactly one of: application_id, application_api_key or application_canvas_name eg: application.get_public_info(:application_canvas_name => ENV)



9
10
11
# File 'lib/facebooker/application.rb', line 9

def get_public_info(properties)
  (@session.post 'facebook.application.getPublicInfo', properties)
end