Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created November 19, 2010 06:44
Show Gist options
  • Save fujimura/706199 to your computer and use it in GitHub Desktop.
Save fujimura/706199 to your computer and use it in GitHub Desktop.
fbg.rb
module FBG
class Client
BASE_URI = 'https://graph.facebook.com/'
def initialize(token)
@token = token
end
def get(path)
params = {:access_token => URI.escape(@token)}
ActiveSupport::JSON.decode RestClient.get(BASE_URI + path, :params => params)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment