lib/koala/graph_api.rb in koala-0.7.2 vs lib/koala/graph_api.rb in koala-0.7.3
- old
+ new
@@ -45,14 +45,14 @@
def get_connections(id, connection_name, args = {})
# Fetchs the connections for given object.
graph_call("#{id}/#{connection_name}", args)["data"]
end
- def get_picture(object)
- result = graph_call("#{object}/picture", {}, "get", :http_component => :headers)
+ def get_picture(object, args = {})
+ result = graph_call("#{object}/picture", args, "get", :http_component => :headers)
result["Location"]
- end
-
+ end
+
def put_object(parent_object, connection_name, args = {})
# Writes the given object to the graph, connected to the given parent.
#
# For example,
#
\ No newline at end of file