fredriksthlm
The chooseAsync functions displays "Play with friends" dialog, but friends don't receive any notification or invite to join the game.
Could you please post an working example (for Construct 3) of how to use updateAsync to actually send an invite message to a friend? Just a simple text like "Can you beat my score?" and a game logo.
I'm guessing it should be something like "FBInstant.context.chooseAsync() .then(FBInstant.updateAsync.....", but I've spent several hours and couldn't get it working..
Also, how do you get a Base64 string from a sprite in Construct3?
Edit: Never mind, I did it!
Browser execute Javascript:
"FBInstant.context.chooseAsync()
.then(function () {
FBInstant.updateAsync({
action: 'CUSTOM',
cta: 'Play it now!',
image: '" & base64Image & "',
text: '" & message & "',
template: 'GAME_TEMPLATE', strategy: 'IMMEDIATE', notification: 'NO_PUSH'}) });"
Instead of encoding a sprite in C3, I used an online tool and simply saved base64 string in a constant variable.