Package | com.distriqt.extension.facebookapi.share.builders |
Class | public class ShareOpenGraphObjectBuilder |
Inheritance | ShareOpenGraphObjectBuilder ![]() |
Method | Defined By | ||
---|---|---|---|
ShareOpenGraphObjectBuilder | |||
build():Object
Builds the action object for adding to a ShareOpenGraphActionBuilder
| ShareOpenGraphObjectBuilder | ||
putBoolean(key:String, value:Boolean):ShareOpenGraphObjectBuilder
Sets a boolean value in the object
| ShareOpenGraphObjectBuilder | ||
putDouble(key:String, value:Number):ShareOpenGraphObjectBuilder
Sets a double (Number) value in the object
| ShareOpenGraphObjectBuilder | ||
putInt(key:String, value:int):ShareOpenGraphObjectBuilder
Sets an integer value in the object
| ShareOpenGraphObjectBuilder | ||
putPhoto(key:String, image:BitmapData, caption:String, userGenerated:Boolean = false):ShareOpenGraphObjectBuilder
Sets a photo value in the object
| ShareOpenGraphObjectBuilder | ||
putPhotoUrl(key:String, url:String, caption:String, userGenerated:Boolean = false):ShareOpenGraphObjectBuilder
Sets a remote photo source value in the object
| ShareOpenGraphObjectBuilder | ||
putString(key:String, value:String):ShareOpenGraphObjectBuilder
Sets a string value in the object
The predefined Facebook keys can be viewed here: https://developers.facebook.com/docs/reference/opengraph#object-type
| ShareOpenGraphObjectBuilder |
ShareOpenGraphObjectBuilder | () | Constructor |
public function ShareOpenGraphObjectBuilder()
build | () | method |
public function build():Object
Builds the action object for adding to a ShareOpenGraphActionBuilder
Object — The action object
|
See also
putBoolean | () | method |
public function putBoolean(key:String, value:Boolean):ShareOpenGraphObjectBuilder
Sets a boolean value in the object
Parameters
key:String — The key for the value
| |
value:Boolean — The value
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|
putDouble | () | method |
public function putDouble(key:String, value:Number):ShareOpenGraphObjectBuilder
Sets a double (Number) value in the object
Parameters
key:String — The key for the value
| |
value:Number — The value
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|
putInt | () | method |
public function putInt(key:String, value:int):ShareOpenGraphObjectBuilder
Sets an integer value in the object
Parameters
key:String — The key for the value
| |
value:int — The value
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|
putPhoto | () | method |
public function putPhoto(key:String, image:BitmapData, caption:String, userGenerated:Boolean = false):ShareOpenGraphObjectBuilder
Sets a photo value in the object
Parameters
key:String — The key for the value
| |
image:BitmapData — The photo image data
| |
caption:String — The user generated caption for the photo. Note that the 'caption' must come from the user, as pre-filled content is forbidden by the Platform Policies (2.3)
| |
userGenerated:Boolean (default = false ) — Specifies whether the photo represented by the receiver was generated by the user or by the application
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|
putPhotoUrl | () | method |
public function putPhotoUrl(key:String, url:String, caption:String, userGenerated:Boolean = false):ShareOpenGraphObjectBuilder
Sets a remote photo source value in the object
Parameters
key:String — The key for the value
| |
url:String — The photo url
| |
caption:String — The user generated caption for the photo. Note that the 'caption' must come from the user, as pre-filled content is forbidden by the Platform Policies (2.3)
| |
userGenerated:Boolean (default = false ) — Specifies whether the photo represented by the receiver was generated by the user or by the application
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|
putString | () | method |
public function putString(key:String, value:String):ShareOpenGraphObjectBuilder
Sets a string value in the object
The predefined Facebook keys can be viewed here: https://developers.facebook.com/docs/reference/opengraph#object-type
Parameters
key:String — The key for the value
| |
value:String — The value
|
ShareOpenGraphObjectBuilder — ShareOpenGraphObjectBuilder instance for chaining calls
|