2

I'm developing a game for Facebook. I use application requests, also known as invites.

I'm wondering if there is a way to distinguish accepted application request from not yet accepted. After a user accepts the request, I delete it via DELETE call to Graph API as described in documentation http://developers.facebook.com/docs/reference/dialogs/requests/ (section Deleting Requests). But I still can GET the application request using GraphAPI.

The root issue is the following. I check the presence of "request_ids" HTTP-param in every incoming HTTP-request and perform app-request processing/deleting if the param is present. So, if the user came to my application by an invite link and hit F5, another HTTP-request still containing same "request_ids" param will be sent to my application. Here I would like to know if the application request has already been processed.

Of course I can track it in my database. But Im looking for some solution using facebook APIs.

Would appreciate any advice.

4

1 回答 1

0

当然,我可以在我的数据库中跟踪它。但我正在寻找一些使用 facebook API 的解决方案。

为什么?在您发布的同一链接上,明确表示这是您的责任:

当用户被定向到您的应用程序时,通过单击应用程序、游戏仪表板或请求通知中的请求,您必须在请求被接受后将其删除。 请求一旦被点击就不会被自动删除,因此开发者有责任在它们被消费后清除它们。

现在我认为向DELETE用户特定的 apprequest 发出请求实际上会使未来GET对该特定 apprequest 的调用无效。但即使不是这样,你也应该处理这种情况。

于 2011-11-23T13:20:56.730 回答