(FB即时游戏)如何从游戏播放按钮获取有效载荷数据?

问题描述 投票:0回答:1

根据这篇文章:https://developers.facebook.com/docs/messenger-platform/reference/buttons/game-play/我可以使用“SERIALIZED_JSON_PAYLOAD”和“此数据将被发送到游戏”的按钮发布参数“payload”。我如何才能在游戏中收到这些数据?

facebook facebook-messenger-bot facebook-instant-games
1个回答
2
投票

你可以在游戏中使用getEntryPointData来访问有效载荷。请注意,它必须是有效的JSON才能工作。

© www.soinside.com 2019 - 2024. All rights reserved.