Skip to content

Instantly share code, notes, and snippets.

@nov
Created September 2, 2011 03:42
Show Gist options
  • Save nov/1187874 to your computer and use it in GitHub Desktop.
Save nov/1187874 to your computer and use it in GitHub Desktop.
FbGraph Logging
FbGraph.debug do
# all API requests by fb_graph gem will be logged within this block
FbGraph::User.new('matake').fetch
end
FbGraph::User.me('access_token').fetch # This won't be logged
FbGraph.debug! # all API requests by fb_graph gem will be logged after this line
FbGraph::Page.new('FbGraph').fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment