gpt4 book ai didi

facebook - 如何知道我的 Facebook 应用程序的 'Pending Requests'

转载 作者:行者123 更新时间:2023-12-02 08:00:14 27 4
gpt4 key购买 nike

我制作了一个 Facebook 应用程序。我已向许多 Facebook 用户发送了该 Facebook 应用程序的请求,我如何知道有多少用户尚未接受我的 Facebook 应用程序请求。

最佳答案

“我如何知道有多少用户尚未接受我的 Facebook 应用程序请求。”

1) 您的应用程序被告知,在发出请求 (http://developers.facebook.com/docs/requests/) 后,该请求发送到了多少个 ID(以及哪些 ID)。因此,将 id 列表存储在数据存储中的某个位置,当然要删除重复的 id。

{
request: 'REQUEST_OBJECT_ID'
to:[array of USER_IDs]
}

2) 当有人通过请求访问您的应用程序时,您会获得他们的 ID。您正在根据文档删除请求,对吗?

When a user is directed to your app by clicking accepting a Request you must delete the request after it has been accepted. Requests are not automatically deleted once they have been clicked, thus it is the developer’s responsibility to clear them once they have been accepted.

3) 因此,当您从列表中删除接受的 ID 时,您仍然拥有尚未接受您的应用程序的 ID 的完整列表。

祝你编码愉快!

关于facebook - 如何知道我的 Facebook 应用程序的 'Pending Requests',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10055718/

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