2012-02-01 47 views
2

我们正在实施Facebook Credits的作为Facebook上的虚拟货币的过程。获取一个用户的Facebook积分余额

我们已申请并已列入白名单用于访问Facebook 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.",

你能确认上述网址是否正确,如果在文档搜索大约一个小时后,我没有提到任何东西!

+2

您正在使用过时的方法。我不确定他们是否还在工作(貌似没有)。 – Lix 2012-02-01 18:05:53

+0

我尽可能多地尝试找到正确的方法,这在某种程度上是不可能的! – 2012-02-01 21:39:21

+0

可能没有太多帮助 - 但这里是一个处理这个问题的bug报告,或者至少是一个相关的问题 - https://developers.facebook.com/bugs/289678194414280。 – Lix 2012-02-01 22:02:51

回答

3

首先,REST API被弃用,你应该使用新的图形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/

我的信念是,太多boneheads滥用特权的知道用户的信用等级,他们的优势,因此这个“功能”去掉了。