According to this article: https://developers.facebook.com/docs/messenger-platform/reference/buttons/game-play/ I can post parameter "payload" for button with "SERIALIZED_JSON_PAYLOAD" and "this data will be sent to the game". How I can receive this data inside my game?
Asked
Active
Viewed 1,376 times
0

amuramoto
- 2,838
- 1
- 11
- 15

Roman Tereschenko
- 65
- 9
-
https://developers.facebook.com/docs/messenger-platform/send-messages/buttons#game_play mentions a Game Play webhook event, but the link behind that leads nowhere currently. – CBroe Feb 28 '18 at 09:36
1 Answers
2
You can use getEntryPointData
inside the game in order to access the payload. Note that it must be valid JSON for this to work.

Chris Hawkins
- 764
- 4
- 15