Packagecom.distriqt.extension.facebookapi.appevents
Classpublic class FacebookAppEvent
InheritanceFacebookAppEvent Inheritance Object

This class represents data to be used for sending Facebook App Events.

Note that only the eventName is required. parameters and valueToSum are optional.

See also

https://developers.facebook.com/docs/ios/app-events
https://developers.facebook.com/docs/android/app-events


Public Properties
 PropertyDefined By
  eventName : String
The name of the event.
FacebookAppEvent
  parameters : Object
[read-only] A key/value object storing additional parameters to be sent with the event (optional) Keys must be of type String, while their values must either be a String or a Number.
FacebookAppEvent
  valueToSum : Number = 0
The valueToSum value for the event (optional). These values are aggregated and averaged in Facebook insights for each event type Setting this value to 0 will cause it to be ignored and not sent with your event.
FacebookAppEvent
Public Methods
 MethodDefined By
  
FacebookAppEvent(eventName:String)
Constructor
FacebookAppEvent
  
removeParameter(key:String):void
Removes a parameter from this event
FacebookAppEvent
  
setParameter(key:String, value:*):void
Adds or updates a parameter for this event Keys must be of type String, while their values must either be a String or a Number.
FacebookAppEvent
  
toObject():Object
FacebookAppEvent
Property Detail
eventNameproperty
public var eventName:String

The name of the event. May be one of the standard Facebook event types or any custom name.

See also

parametersproperty 
parameters:Object  [read-only]

A key/value object storing additional parameters to be sent with the event (optional)

Keys must be of type String, while their values must either be a String or a Number. Anything which does not match these types will be converted to a String.

While you can modify this object directly, it's recommended to use the setParameter and removeParameter methods to ensure data validation.


Implementation
    public function get parameters():Object
valueToSumproperty 
public var valueToSum:Number = 0

The valueToSum value for the event (optional).

These values are aggregated and averaged in Facebook insights for each event type

Setting this value to 0 will cause it to be ignored and not sent with your event. This is the default value.

Constructor Detail
FacebookAppEvent()Constructor
public function FacebookAppEvent(eventName:String)

Constructor

Parameters
eventName:String
Method Detail
removeParameter()method
public function removeParameter(key:String):void

Removes a parameter from this event

Parameters

key:String — String - name of the parameter

setParameter()method 
public function setParameter(key:String, value:*):void

Adds or updates a parameter for this event

Keys must be of type String, while their values must either be a String or a Number. Any value which does not match these types will be converted to a String.

Parameters

key:String — String - name of the parameter
 
value:* — String or Number - value of the parameter

toObject()method 
public function toObject():Object

Returns
Object