I am new in instant games. Please tell me how I can user
FBInstant.updateAsync({
action: 'CUSTOM',
cta: 'Join The Fight',
image: base,
template: 'play_turn',
text: 'Play your turn now',
data: {
myReplayData: '...',
id: contextId
},
strategy: 'IMMEDIATE',
notification: 'NO_PUSH',
}).then(
() => {
console.log('updateAsync() success!' + JSON.stringify(data));
FBInstant.quit();
},
error => {
console.error('updateAsync() ERROR! ' + JSON.stringify(error));
}
);
}
I have set up my fb config file also.
{
"instant_games": {
"platform_version": "RICH_GAMEPLAY",
"custom_update_templates": {
"play_turn": {
"example": "Yolo just invaded village!"
}
}
}
}
How can I get psid of user and how can I send messages to user for re engagement.