Packagecom.distriqt.extension.facebookapi.graphapi
Interfacepublic interface GraphAPIRequest extends flash.events.IEventDispatcher

Represents a request that can be made to the Graph API

You should use the GraphAPIRequestBuilder to create instances of this class.

See also

com.distriqt.extension.facebookapi.graphapi.builders.GraphAPIRequestBuilder
com.distriqt.extension.facebookapi.graphapi.GraphAPI.makeRequest()


Public Properties
 PropertyDefined By
  fields : Array
GraphAPIRequest
  image : BitmapData
GraphAPIRequest
  method : String
GraphAPIRequest
  onComplete : Function
[write-only] Complete callback function
GraphAPIRequest
  onError : Function
[write-only] Error callback function
GraphAPIRequest
  params : Object
GraphAPIRequest
  paramsJSON : String
[read-only] Internal usage
GraphAPIRequest
  path : String
GraphAPIRequest
Events
 Event Summary Defined By
   Dispatched when a graph API request completed.GraphAPIRequest
   Dispatched when there was an error returned from a Graph API request GraphAPIRequest
Property Detail
fieldsproperty
fields:Array


Implementation
    public function get fields():Array
    public function set fields(value:Array):void
imageproperty 
image:BitmapData


Implementation
    public function get image():BitmapData
    public function set image(value:BitmapData):void
methodproperty 
method:String


Implementation
    public function get method():String
    public function set method(value:String):void
onCompleteproperty 
onComplete:Function  [write-only]

Complete callback function


Implementation
    public function set onComplete(value:Function):void
onErrorproperty 
onError:Function  [write-only]

Error callback function


Implementation
    public function set onError(value:Function):void
paramsproperty 
params:Object


Implementation
    public function get params():Object
    public function set params(value:Object):void
paramsJSONproperty 
paramsJSON:String  [read-only]

Internal usage


Implementation
    public function get paramsJSON():String
pathproperty 
path:String


Implementation
    public function get path():String
    public function set path(value:String):void
Event Detail
facebookapi:graphapirequest:complete Event
Event Object Type: com.distriqt.extension.facebookapi.events.GraphAPIRequestEvent
GraphAPIRequestEvent.type property = com.distriqt.extension.facebookapi.events.GraphAPIRequestEvent.COMPLETE

Dispatched when a graph API request completed.

The event data field will be an object that was parsed from the JSON response of the graph API request.

You should check the documentation of the Facebook Graph API to see what data you can expect to be returned here.

facebookapi:graphapirequest:error Event  
Event Object Type: com.distriqt.extension.facebookapi.events.GraphAPIRequestEvent
GraphAPIRequestEvent.type property = com.distriqt.extension.facebookapi.events.GraphAPIRequestEvent.ERROR

Dispatched when there was an error returned from a Graph API request