You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nirmal Lanka edited this page Mar 20, 2018
·
1 revision
Constructors
Use the end user's userId as recipientId here.
Function
Parameters
Description
Comments
.text
recipientId:string, messageText:string
Sends a simple text message
.tiles.generic
recipientId:string, tiles:[tile]
A horizontal list of tiles
$.factories.tile
.tiles.list
recipientId:string, tiles:[tile**]
A vertical list of tiles
Only a single button object is supported in each tile.
.tiles.media
recipientId:string, tiles:[tile**]
A list of Facebook media tiles
Only media on Facebook can be shared with this. For external content, see .attachment.
.tiles.attachment
recipientId:string, type:string, payload:{}*
Send a file to the user
type:["image", "video", "audio", "file"],payload:{ url:string, is_reusable:bool }. is_reusable means the attachment should be cached by Fb. An attachment id is returned on success of this observable method.