Graph Batch API

This is my first stackoverflow post.

I use the Facebook GUI API to request feed updates from multiple users at the same time. But I really don't know how the appropriate error handling is done. The following example should demonstrate my problem:

Party Request:

user1 - valid access_token
user2 - invalid (password change maybe?)
user3 - valid access_otken

The answer from Facebook might look like this:

successful answer
unsuccessful answer (OAuth Exception)
successful answer

But while reading the documents, it seems that the order of the answer is not guaranteed. So my question is: how do I associate responses with their specific partial requests from a batch request?

Handling an OAuth exception is pretty complicated when you don't get the information this request relates to.

Any thoughts?

+5
1

PHP SDK, Javascript SDK header body .

, .

, PHP SDK .

0

All Articles