Asynchronous computing is a paradigm where the user does not expect a workload to be executed immediately; instead, it gets scheduled for execution sometime in the near future without blocking the latency-critical path of the application. This page gives you guidance and the best practices to follow to retrieve the results of the async API.
curl -G -X GET \
-d 'fields=id,status,result' \
-d 'access_token=<ACCESS_TOKEN>' \
"https://graph.facebook.com/v19.0
/<ASYNC_SESSION_ID>"
{ "id": "<ASYNC_SESSION_ID>", "status": "enum string", "result": "string", }
Name | Description |
---|---|
numeric string | The ID of the async request. |
enum string | The status of the async job.
|
string | The result as returned by the async job. |
The polling requests also count towards the overall API rate limit for your application. Consider using exponential backoff for polling.