简体   繁体   中英

How to send notifications using Facebook's SDK for instant games?

I've been working on an instant game for Facebook. All I want is to send a notification that invites the user to play again. I've been checking out documentation for it but it is very unclear on that matter.

I am already using the SDK for instant games and got it running, but I have no idea on how to use the graph API to only send a notification. I don't know in which file I have to put the code for it, nor where to reference it in the index.

you need to add a messenger bot to be able to message users. check this is the bot docs [1]: https://developers.facebook.com/docs/games/instant-games/getting-started/bot-setup/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM