I'm trying to call FBInstant.updateAsync() at chat context (with id=THREAD). It resolves successfully, but don't post any messages at chat. Does anybody know why is that happens?
Issue was fixed, working code:
FBInstant.updateAsync({
action: 'CUSTOM',
//cta: 'Join The Fight',
image: 'data:image/jpeg;base64,/...',
text: 'X just invaded Y\'s village!',
template: 'test_template',
data: { myReplayData: '...' },
strategy: 'IMMEDIATE',
notification: 'NO_PUSH',
}).then(
() =>{
console.log('updateAsync() success!' + JSON.stringify(data));
FBInstant.quit();
},
error => {
console.error('updateAsync() ERROR! ' + JSON.stringify(error));
}
);
Here is my fbapp-config.json:
{
"instant_games": {
"platform_version": "RICH_GAMEPLAY",
"custom_update_templates": {
"test_template": {
"example": "X just invaded Y's village!"
}
}
}
}