Module: FacebookGraph::HTTPHelper

Included in:
Helper
Defined in:
lib/facebook-graph/helpers/http_helper.rb

Instance Method Summary collapse

Instance Method Details

#get(uri) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/facebook-graph/helpers/http_helper.rb', line 10

def get uri
  uri = URI.parse(uri)
  http = initialize_http(uri.host, uri.port)
  request = Net::HTTP::Get.new uri.request_uri
  #request['user-agent'] = "facebook-graph gem"
  http.request(request).body      
end