gpt4 book ai didi

facebook-fql - 获取用户 Facebook Credits 余额

转载 作者:行者123 更新时间:2023-12-04 05:59:26 25 4
gpt4 key购买 nike

我们正在将 Facebook Credits 实现为 Facebook 上的虚拟货币。

我们已经申请并被列入白名单以访问 Facebook Credits 余额方法,但是从我能够找到的小文档(主要是论坛帖子)来看,它似乎不起作用!

我正在使用以下 URL 来获取用户的 Credits 余额:https://api.facebook.com/method/users.getStandardinfo?fields=credit_balance&format=json&uids=FB_USER_ID&access_token=DEVELOPMENT_APP_ACCESS_TOKEN

我收到以下错误:

"error_code": 13, "error_msg": "The underlying FQL query made by this API call has encountered the following error: credit_balance is not a member of the user table.",



你能确认上面的 URL 是正确的吗?如果不是,请告诉我一些文档的方向,在文档中搜索了大约一个小时后,我一无所获!

最佳答案

首先,REST API 已被弃用,您应该使用新的 Graph API。见:https://developers.facebook.com/docs/reference/rest/

We are in the process of deprecating the REST API. If you are building a new Facebook application, please use the Graph API. While there is still functionality that we have not ported over yet, the Graph API is the center of Facebook Platform moving forward and where all new features will be found.



也在 https://developers.facebook.com/docs/reference/rest/users.getStandardinfo/没有名为 credit_balance 的字段.

我也去了 https://developers.facebook.com/docs/reference/fql/user/那里也没有名为 credit_balance 的字段。

但我确实去了 https://developers.facebook.com/docs/credits/并阅读学分。似乎他们已经取消了应用获取该信息的能力,以代替 Facebook 的新信用对话框,该对话框不需要应用程序需要知道用户的信用余额,因为 Facebook 将在应用程序中向用户显示它他们的对话。

您可以按照此处的指南了解如何集成新对话框: https://developers.facebook.com/docs/credits/build/

我的看法是,太多笨蛋滥用了了解用户信用级别的特权来为自己谋取利益,因此删除了此“功能”。

关于facebook-fql - 获取用户 Facebook Credits 余额,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9100839/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com