Time for action – requesting more Objects at once

  1. Let's increase the limit to 5000, just to be safe. Edit HTTPRequestor.as:
    public function request(a_request:GraphRequest):void
    {
      var loader:URLLoader = new URLLoader();
      var urlRequest:URLRequest = new URLRequest();
      var variables:URLVariables = new URLVariables();
      
      //We construct a URL from the parameters of the GraphRequest
      urlRequest.url = "https://graph.facebook.com/" + a_request.objectID;
      if (a_request.connectionID)
      {
        //remember, this means a connection (and thus a list)
        //was requested
        urlRequest.url += "/" + a_request.connectionID;
        variables.limit = 5000; } variables.metadata = 1; if (accessToken != "") { variables.access_token = accessToken; } urlRequest.data = variables; //this is used ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.