Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过Facebook API,我可以看到我对这些问题的答案吗?_Facebook_Facebook Graph Api - Fatal编程技术网

通过Facebook API,我可以看到我对这些问题的答案吗?

通过Facebook API,我可以看到我对这些问题的答案吗?,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我想看看我是如何回答一些问题的,这些问题是在我所属的某个Facebook群组中被问到的。有没有一种方法可以通过API实现这一点?您可以查询fql表 但是,您需要具有相应的权限才能执行此操作: To read options from the question_option table you need the following permissions: user_questions for questions posed by the current user. friend

我想看看我是如何回答一些问题的,这些问题是在我所属的某个Facebook群组中被问到的。有没有一种方法可以通过API实现这一点?

您可以查询fql表

但是,您需要具有相应的权限才能执行此操作:

To read options from the question_option table you need the following permissions:

    user_questions for questions posed by the current user.
    friends_questions for questions posed by friends of the current user.
我怀疑,除非您是该组的管理员,否则您将无法获取该数据。

按照以下步骤操作:

第一名:

您的应用程序需要获得用户问题和用户组的权限

秒:

您可以使用多重查询获取所有问题、答案和选民的基本信息

第三名:

用于检查数据

最后,使用以下查询:

fql?q={

    "questions":"select id,question from question where owner= me()",

    "options":"select id, question_id, name,votes from question_option WHERE question_id in (select id from #questions)",

    "option_votes":"select voter_id, option_id  from question_option_votes where option_id IN (select id from #options) order by voter_id desc",

    "users":"select uid, name, first_name, middle_name, last_name, sex, locale, pic_small_with_logo, pic_big_with_logo, pic_square_with_logo, pic_with_logo, username from user where uid IN (select voter_id from #option_votes)"
}
注意:字段“uid、name、first\u name、middle\u name、last\u name、sex、locale、pic\u small\u with_logo、pic\u big\u with_logo、pic\u square\u with_logo、pic\u with_logo、username”是公共访问,不需要令牌