Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.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
如何使用fqlquery从facebook检索用户信息?_Facebook_Facebook Fql - Fatal编程技术网

如何使用fqlquery从facebook检索用户信息?

如何使用fqlquery从facebook检索用户信息?,facebook,facebook-fql,Facebook,Facebook Fql,我有如下所示的fql查询 Select uid,profile_url,pic_square from user where name="Ershad" 在这里,我得到如下回应 xml version="1.0" encoding="UTF-8" fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true" 但

我有如下所示的fql查询

Select uid,profile_url,pic_square from user where name="Ershad"
在这里,我得到如下回应

xml version="1.0" encoding="UTF-8"

fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true"
但是我想要所有的列表,所有的细节,包括uid,个人资料url和图片方块。
请任何人帮助我。

当您得到这样的返回结果时,这意味着没有返回与您的查询匹配的数据。我可以马上想到两件事会导致这种情况:

  • 没有名为“Ershad”的用户安装了您的应用程序。请注意,“姓名”字段是全名搜索,因此需要在其中输入此人的全名
  • 您正在使用错误的应用程序API密钥进行查询

我建议你在办公室里试试你的问题。选择您的应用程序,然后从“方法”下拉列表中选择“fql.query”,然后在那里尝试您的查询。

否,先生,我正在facebook上获得同名搜索的结果。在这个fql_query_response xmlns=“”xmlns:xsi=“”list=“true”中,如果我没有弄错的话,将出现一个结果列表。(上面的结果中的list=“true”)。如果是另一个名字,我只有一个结果,我得到的结果是uid,pic,profile\uURL。因此,请帮助获得多重结果。谢谢我在控制台中尝试了下面的查询,从username=“subbu”我得到的结果如下所示的用户中选择uid、profile\u url、pic\u square?xml version=“1.0”encoding=“UTF-8”?fql_查询_响应xmlns=”“xmlns:xsi=”“list=“true”用户uid>689103803 pic_square用户fql_查询_响应