Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.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
Php 无法检索Facebook用户发送和接收的邮件_Php_Facebook_Facebook Fql - Fatal编程技术网

Php 无法检索Facebook用户发送和接收的邮件

Php 无法检索Facebook用户发送和接收的邮件,php,facebook,facebook-fql,Php,Facebook,Facebook Fql,我执行了以下查询,但无法检索任何结果: $fql_query = 'select message_id from message where message_id IN (SELECT message_id FROM message WHERE viewer_id='.$fbuser.')'; 我获得了此查询的结果: $fql_query = 'select gid, name from group where gid IN (SELECT gid FROM group_member WHER

我执行了以下查询,但无法检索任何结果:

$fql_query = 'select message_id from message where message_id IN (SELECT message_id FROM message WHERE viewer_id='.$fbuser.')';
我获得了此查询的结果:

$fql_query = 'select gid, name from group where gid IN (SELECT gid FROM group_member WHERE uid='.$fbuser.')';

该应用程序同时具有组和邮件读取权限。

表中的
查看器id
不可索引,因此您可能需要对表进行子查询,如下所示将从收件箱文件夹(文件夹nb.0中获取
邮件id
):

您还可以使用图形API,例如:

/USER_ID?fields=inbox.until(1348523520).limit(25).fields(comments.fields(from,message))
/USER_ID?fields=inbox.until(1348523520).limit(25).fields(comments.fields(from,message))