diff --git a/lib/koala/api/graph_batch_api.rb b/lib/koala/api/graph_batch_api.rb index 81c5662d..bd79d17b 100644 --- a/lib/koala/api/graph_batch_api.rb +++ b/lib/koala/api/graph_batch_api.rb @@ -55,9 +55,9 @@ def execute(http_options = {}) original_api.graph_call("/", args, "post", http_options) do |response| raise bad_response("Facebook returned an empty body") if response.nil? - #when http_component is set we receive Koala::Http_service response object - # from graph_call.so thiis needs to be parsed - # as generate_results method handles only JSON rsponse + # when http_component is set we receive Koala::Http_service response object + # from graph_call so this needs to be parsed + # as generate_results method handles only JSON response if http_options[:http_component] response = JSON.load(response.body) raise bad_response("Facebook returned an invalid body") unless response.is_a?(Array)