-
-
Notifications
You must be signed in to change notification settings - Fork 66
Debugging
Nov Matake edited this page May 9, 2015
·
2 revisions
If you have any errors when using fb_graph2, debug actual Graph API response.
By calling FbGraph2.debug!
on top of your code, you’ll see actual HTTP request & response in your console.
FbGraph2.debug!
## NOTE: You can set your own logger too.
# FbGraph2.logger = Rails.logger
me = FbGraph2::User.me(ACCESS_TOKEN).fetch
me.feed! message: 'Hello World'
Putting raw http response is always better than putting ruby backtrace when reporting FbGraph2 bug.