FQL in Fgraph
Very simple way to use FQL in Fgraph (https://github.com/jugend/fgraph) with query caching.
require 'digest/sha1'
module FGraph
class Client
def fql(query)
@cached_query ||= {}
@cached_query[Digest::SHA1.hexdigest(query)] ||= HTTParty.get("https://api.facebook.com/method/fql.query", :query => {:query => query, :access_token => self.options[:access_token], :format => :json} )
end
end
end