Packagecom.distriqt.extension.facebookapi.games.builders
Classpublic class GameRequestContentBuilder
InheritanceGameRequestContentBuilder Inheritance Object

Helper class to help construct a GameRequest



Public Methods
 MethodDefined By
  
Constructor
GameRequestContentBuilder
  
build():Object
GameRequestContentBuilder
  
Sets the action type for this request Must be one of: GameRequestActionType.SEND GameRequestActionType.ASK_FOR GameRequestActionType.TURN
GameRequestContentBuilder
  
Sets optional data which can be used for tracking; maximum length is 255 characters
GameRequestContentBuilder
  
Sets the filters for everybody/app users/non app users
GameRequestContentBuilder
  
ts the message users receiving the request will see.
GameRequestContentBuilder
  
Sets the open graph id of the object that action type will be performed on Only valid (and required) for ActionTypes SEND, ASKFOR
GameRequestContentBuilder
  
An array of user IDs, usernames or invite tokens of people to send request.
GameRequestContentBuilder
  
Sets a list of user ids suggested as request receivers
GameRequestContentBuilder
  
Sets an optional title for the dialog; maximum length is 50 characters.
GameRequestContentBuilder
Constructor Detail
GameRequestContentBuilder()Constructor
public function GameRequestContentBuilder()

Constructor

Method Detail
build()method
public function build():Object

Returns
Object
setActionType()method 
public function setActionType(actionType:String):GameRequestContentBuilder

Sets the action type for this request

Must be one of:

Parameters

actionType:String — The action type from the GameRequestActionType definitions

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining

See also

setData()method 
public function setData(data:String):GameRequestContentBuilder

Sets optional data which can be used for tracking; maximum length is 255 characters

Parameters

data:String — The data

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setFilters()method 
public function setFilters(filters:String):GameRequestContentBuilder

Sets the filters for everybody/app users/non app users

Parameters

filters:String

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setMessage()method 
public function setMessage(message:String):GameRequestContentBuilder

ts the message users receiving the request will see. The maximum length is 60 characters.

Parameters

message:String — The message

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setObjectId()method 
public function setObjectId(objectId:String):GameRequestContentBuilder

Sets the open graph id of the object that action type will be performed on

Only valid (and required) for ActionTypes SEND, ASKFOR

Parameters

objectId:String — The object id

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setRecipients()method 
public function setRecipients(recipients:Array):GameRequestContentBuilder

An array of user IDs, usernames or invite tokens of people to send request. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.

This is equivalent to the "to" parameter when using the web game request dialog.

Parameters

recipients:Array — The array of user ids to send the request to

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setSuggestions()method 
public function setSuggestions(suggestions:Array):GameRequestContentBuilder

Sets a list of user ids suggested as request receivers

Parameters

suggestions:Array — An array of strings representing user ids

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining
setTitle()method 
public function setTitle(title:String):GameRequestContentBuilder

Sets an optional title for the dialog; maximum length is 50 characters.

Parameters

title:String — The title

Returns
GameRequestContentBuilderGameRequestContentBuilder instance for chaining