| Package | com.facebook.graph.data |
| Class | public class Batch |
| Inheritance | Batch Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| requests : Array [read-only]
Returns the current list of BatchItems to be sent to facebook. | Batch | ||
| Method | Defined By | ||
|---|---|---|---|
Batch() | Batch | ||
add(relativeURL:String, callback:Function = null, params:* = null, requestMethod:String = GET):void
Adds a new request to this Batch operation. | Batch | ||
| requests | property |
requests:Array [read-only] Returns the current list of BatchItems to be sent to facebook.
public function get requests():Array| Batch | () | Constructor |
public function Batch()| add | () | method |
public function add(relativeURL:String, callback:Function = null, params:* = null, requestMethod:String = GET):voidAdds a new request to this Batch operation. Facebook limits you to a maximum of 20 requests per batch operation. For details look at:
Parameters
relativeURL:String — The method to be called on the graph api.
| |
callback:Function (default = null) — The function to call after the API has parsed the result from facebook.
ote: there will also be another callback issued when the entire operation is done.
| |
params:* (default = null) — Object of values to pass with this api call.
| |
requestMethod:String (default = GET) — URLRequestMethod used when facebook executes this command.
|
See also