我遇到了一个问题,我的成就代码在我的暂存(沙盒)环境中完美运行,但在我的生产环境中失败了。
当我使用数据 HTTP POST 到 [我的应用程序 ID]/成就时
- achievement=[url of achievement, lints fine]
- display_order=101
- access_token=[an app access token]
...我得到错误:
"error": {
"message": "(#3403) Achievement hasn't been registered for this application. See https://developers.facebook.com/docs/achievements/",
"type": "OAuthException"
}
当您尝试为用户提供无效成就时,应该会发生这种情况。我已经验证我正在调用的端点是我的应用程序 ID,而不是用户 ID,所以我完全不知道可能出了什么问题。有任何想法吗?提前致谢!