Asynchronous Batch Requests using Facebook Marketing API (JAVA)

858 Views Asked by At

is there a way to make asynchronous batch requests using java sdk? The docs show some examples using curl only. Does anyone have a java example?

    BatchRequest batchRequest = new BatchRequest(context);

    // adding some requests
    request.addToBatch(batchRequest1);
    request.addToBatch(batchRequest2);
    request.addToBatch(batchRequest3);

    List<APIResponse> batchResult = batchRequest.execute(); <-- How to async?
0

There are 0 best solutions below