FaceBook API:获取请求ID的请求对象 - 登录发送请求的帐户。使用“请求对话框” API [英] FaceBook API: Get the Request Object for a request Id - logged into the account that sent the request. Using the "Requests Dialog" API

查看:110
本文介绍了FaceBook API:获取请求ID的请求对象 - 登录发送请求的帐户。使用“请求对话框” API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用请求对话框创建Facebook请求。为了让用户发送请求,我需要使用图形API访问Request对象。我尝试了大部分权限设置(read_requests和user_about_me)来获取请求对象,而是在响应中得到一个错误。我使用错误的权限?

I am using the "Requests Dialog" to create Facebook requests. Inorder to get the user that the requests were sent to I need to access the Request object using the graph API. I have tried most of the permissions settings that seemed appropriate (read_requests and user_about_me) to get the request object, but instead I get a false in the response. Am I using the wrong permissions?

我可以使用请求发送到的帐户中的图形API访问请求对象。

I am able to access the request object using the graph API from the account that the request was sent to.

http://developers.facebook.com/docs/reference/dialogs/ request /


返回数据 - 已创建的request_ids的逗号分隔列表

要了解请求是否发送
,您应该循环通过请求ID标识的每个请求对象

信息。

Return Data - A comma-separated list of the request_ids that were created. To learn who the requests were sent to, you should loop through the information for each request object identified by a request id.


推荐答案

一直以来我一直在问自己这个问题:

如何检索所有请求发送

I've been asking myself this question a while ago:
How to retrieve all the requests sent by me?

答案: 您不能 / strong>!

您有两个选项:

The answer: you can't!
You have two options:


  1. 存储 request_id 在用户发送请求时返回,因此您可以稍后访问它们并获取所需的数据

  2. 了解接收者!

  1. Store the request_id returned when the user sent the request, so you can later access them and get the data you need
  2. Knowing the receiver!

以上证明,您可以查看 friend_request 表。可索引字段是 uid_to 字段!

Proof of the above, you can check the friend_request table. The indexable field is the uid_to field!

这篇关于FaceBook API:获取请求ID的请求对象 - 登录发送请求的帐户。使用“请求对话框” API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆