From 383f60968ef283b05cbebfc141a0332f5b7ab371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Juvenal?= Date: Fri, 22 Jul 2011 22:31:19 -0700 Subject: [PATCH] Added get_objects_with_connection method. It is possible to get connections from multiple ids in batch. --- src/facebook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/facebook.py b/src/facebook.py index f9d735e..be2855c 100644 --- a/src/facebook.py +++ b/src/facebook.py @@ -101,6 +101,10 @@ def get_connections(self, id, connection_name, **args): """Fetchs the connections for given object.""" return self.request(id + "/" + connection_name, args) + def get_objects_with_connection(self, ids, connection_name, **args): + args["ids"] = ",".join(ids) + return self.request("/" + connection_name, args) + def put_object(self, parent_object, connection_name, **data): """Writes the given object to the graph, connected to the given parent.