send message to user facebook game code example
Example: send message to user facebook game
FBInstant.updateAsync({
action: 'CUSTOM',
cta: 'Play',
text: nn+' originates from '+title_s[ii]+' - test another name.',
template: 'WORD_PLAYED',
data: { myReplayData: '...' },
strategy: 'IMMEDIATE',
notification: 'NO_PUSH'
}).then(function() {
console.log('Message was sent successfully');
});