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.