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:
parent
1dc1888cf0
commit
49eb927b84
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -168,4 +168,4 @@ describe FbGraph2::Node do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue