Debugging - nov/fb_graph2 GitHub Wiki

Debugging

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.

⚠️ **GitHub.com Fallback** ⚠️