Created
September 2, 2011 03:42
-
-
Save nov/1187874 to your computer and use it in GitHub Desktop.
FbGraph Logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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