Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.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 Graph API中指定日期时出现问题_Facebook_Api - Fatal编程技术网

在Facebook Graph API中指定日期时出现问题

在Facebook Graph API中指定日期时出现问题,facebook,api,Facebook,Api,我正在使用以下内容,通过以下请求提取Facebook帖子和评论: `me?fields=posts{comments}` 这很好用 当我尝试使用以下命令指定某个日期范围时: me?fields=posts{comments}?period=2016-11-01&until=2019-12-02 我得到以下错误: { "error": { "message": "Syntax error \"Expected end of string instead of \"?\".\" at chara

我正在使用以下内容,通过以下请求提取Facebook帖子和评论:

 `me?fields=posts{comments}`
这很好用

当我尝试使用以下命令指定某个日期范围时:

me?fields=posts{comments}?period=2016-11-01&until=2019-12-02

我得到以下错误:

{
"error": {
"message": "Syntax error \"Expected end of string instead of \"?\".\" at character 15: posts{comments}?period",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "AlvbffL63STHI2nxm3ANsh2"
}
}
谁能告诉我我做错了什么


我是Facebook API新手,任何帮助都将不胜感激

URL查询字符串以问号开头,但多个name=value参数用符号分隔。您好04FS,感谢您的回复。你能告诉我它应该是什么样子的吗,因为我仍然无法使它工作?