1

我在批量查询 POST 方法中使用以下查询获取页面发布结果和评论计数。

批处理:[{"name":"post-resultset","method":"GET","re​​lative_url":"me/posts?offset=0&limit=2"},{"method":"GET","re​​lative_url ":"fql?q=SELECT post_id, comment_info from stream where post_id IN ({result=post-resultset:$.data.*.id})"}]

我收到错误代码 400 的响应

{“错误”:{“消息”:“(#601)解析器错误:位置74处意外'_435851216505244'。”,“类型”:“OAuthException”,“代码”:601 }}

这个查询有什么问题?

4

1 回答 1

0

这是由于post-resultset:$.data.*.id上的 post_id没有被引号包围,例如

"relative_url":"fql?q=SELECT post_id, comment_info from stream where post_id IN (\"1234567_435851216505244\")"

我认为这是一个 facebook 错误,您应该在https://developers.facebook.com/bugs上报告该错误

在此处输入图像描述

于 2013-04-19T10:17:03.487 回答