send message to user facebook game

JavaScript
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');
});

Source

Also in JavaScript: