O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GraphRequestManager

The GraphRequestManager queue requests the Facebook Graph API and executes it when told to do so.

It has access to the following methods:

  • addRequest: This is a function that accepts an instance of GraphRequest and pushes the request into the queue of GraphRequestManager. It also pushes the callback into a separate requestCallbacks queue for execution once the request has been completed or failed.
  • addBatchCallback: This accepts an optional callback to be executed once the entire batch of requests has been completed. Each instance of GraphRequestManager can only accept up to one callback, and the invocation of that callback does not indicate that every graph request in the batch was successful--the only thing it is indicative ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required