Packagecom.distriqt.extension.facebook.graphapi
Interfacepublic interface GraphRequest extends flash.events.IEventDispatcher

Represents a request that can be made to the Graph API

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

See also

com.distriqt.extension.facebook.graphapi.builders.GraphRequestBuilder
com.distriqt.extension.facebook.graphapi.GraphAPI.makeRequest()


Public Properties
 PropertyDefined By
  fields : Array
GraphRequest
  image : BitmapData
GraphRequest
  method : String
GraphRequest
  onComplete : Function
[write-only] Complete callback function
GraphRequest
  onError : Function
[write-only] Error callback function
GraphRequest
  params : Object
GraphRequest
  paramsJSON : String
[read-only] Internal usage
GraphRequest
  path : String
GraphRequest
Events
 Event Summary Defined By
   Dispatched when a graph API request completed.GraphRequest
   Dispatched when there was an error returned from a Graph API request GraphRequest
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
facebook_graphrequest_complete Event
Event Object Type: com.distriqt.extension.facebook.graphapi.events.GraphRequestEvent
GraphRequestEvent.type property = com.distriqt.extension.facebook.graphapi.events.GraphRequestEvent.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.

facebook_graphrequest_error Event  
Event Object Type: com.distriqt.extension.facebook.graphapi.events.GraphRequestEvent
GraphRequestEvent.type property = com.distriqt.extension.facebook.graphapi.events.GraphRequestEvent.ERROR

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