1

我试过 $facebook->api('/me/apprequests/'); 即使将 2 个未完成的请求发送给 2 个不同的朋友,这也是空白的。图形浏览器上也没有显示任何内容。

我需要的是一种在不知道请求 ID 的情况下获取此信息的方法,因为我需要在他们向用户发送用户请求后将此信息添加到我的数据库中,以防止他们每天向朋友发送多个请求。我知道其他应用程序这样做,但我猜他们没有使用 FB.ui 并且可能在发送请求时记录该信息?

4

1 回答 1

1

There is no way to get requests that user sent via apprequests connection of user object, only those user received.

You can read the apprequests sent to a user by your app by issuing an HTTP GET request to /USER_ID/apprequests with user access_token.

You should store information about requests sent by application on your end if you need that info.

于 2012-02-08T20:58:17.450 回答