Graph API 有关接受/拒绝特定用户请求的信息
我通过带有 GraphAPI 的新请求对话框发出了应用程序请求。我邀请了所有不使用该应用程序的朋友。我可以按照文档中的描述获取 request_ids 。 A 可以遍历所有 request_ids 并查看请求是否存在。如果用户出现在应用程序用户列表中,则意味着他接受了邀请并且请求(id)已被删除(基于 此链接)。问题是我如何确定用户接受了我的请求而不是其他用户的请求。
例如,两个用户有共同的朋友,他们都向他发送了应用程序请求,共同的朋友接受了另一个用户的请求,所以这意味着他拒绝了我的。我在哪里可以使用 GraphAPI 找到此信息
我在整个网络上查找但找不到答案。
重点是,在游戏中需要这些信息,我要为接受的邀请/请求提供额外的时间
I did a app request trough the new Requests Dialog with GraphAPI.I invited all of my friends that are not using the app. I can get the request_ids as described in the documentation. A can iterate trough all request_ids and see if the request exists. If the user shows up in the app users list it means he accepted the invitation and the request(id) was removed (based on this link). The problem is how can I determine that user accepted my request not request from the other user.
e.g. Two users have mutual friend and they both sent him app request the mutual friend accepted the request from the other user so it means he declined mine. Where can I find this information using GraphAPI
I was looking all over the web and I could not find answer.
The point is that need this information in game where I am giving extra time for accepted invitations/requests
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将数据添加到应用程序请求中。
http://developers.facebook.com/docs/reference/dialogs/requests/
您可以在其中添加包含您需要的任何内容的 JSON 字符串,包括
{from : user.id }
因此,您可以从 request_ids 数组进行迭代并检查哪个用户发送了它。
You can add data to the app request.
http://developers.facebook.com/docs/reference/dialogs/requests/
In there you can add a JSON string containing anything you need, including
{from : user.id }
So, you can iterate from the request_ids array and check which user sent it.