require 'open-uri' require 'json' json_object = JSON.parse(open("https://graph.facebook.com/me/friends?access_token=XXX").read)
This is the easiest way, although it may not be the fastest.
Edit: if a URI contains special characters in its parameter string, it must first be escaped / encoded using URI.escape .
M. Cypher
source share