1
0
Fork 0
mirror of https://github.com/nov/fb_graph2 synced 2023-03-27 23:22:15 -04:00

Graph API also released "debug mode"

This commit is contained in:
nov 2015-04-02 16:13:02 +09:00
parent 1dc1888cf0
commit 49eb927b84
2 changed files with 3 additions and 2 deletions

View file

@ -94,6 +94,7 @@ module FbGraph2
end
def build_params(params = {})
params = Hash(params).merge(debug: :all) if FbGraph2.debugging?
if params.present?
if params.include? :fields
params[:fields] = Array(params[:fields]).join(',')
@ -122,4 +123,4 @@ module FbGraph2
raise Exception.new(response.status, "Unparsable Response: #{response.body}")
end
end
end
end

View file

@ -168,4 +168,4 @@ describe FbGraph2::Node do
end
end
end
end
end