显示空数组的 FQL 多重查询
我正在使用 Facebook fql.multiquery 通过命令行获取数据。像这样
$queries = '{
**"query1" : "SELECT metric, value
FROM insights WHERE object_id=148945955209922
AND metric="application_active_users"
AND end_time=end_time_date("2011-12-10")
AND period=period("month")",
"query2" : "SELECT metric, value
FROM insights WHERE object_id=148945955209922
AND metric="application_active_users_city"
AND end_time=end_time_date("2011-12-10")
AND period=period("month")"
}';
但是在运行此代码时它显示空数组。
有人可以帮助我吗?
i am usig Facebook fql.multiquery to fetch data with command line. like this
$queries = '{
**"query1" : "SELECT metric, value
FROM insights WHERE object_id=148945955209922
AND metric="application_active_users"
AND end_time=end_time_date("2011-12-10")
AND period=period("month")",
"query2" : "SELECT metric, value
FROM insights WHERE object_id=148945955209922
AND metric="application_active_users_city"
AND end_time=end_time_date("2011-12-10")
AND period=period("month")"
}';
But while running this code it is showing empty Array.
can anybody help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我首先要开始对您的访问令牌进行故障排除。确保您的访问令牌具有适当的权限。其次,通过正常的 FQL 单独运行每个查询,确保查询彼此独立运行。您可以使用 Graph API Explorer 工具 https://developers.facebook.com/tools 来尝试 FQL 结构/资源管理器
I would first start troubleshooting your access token. Ensure your access token has the appropriate permissions. Secondly, ensure the queries run independently of each other by running each one separately thru the normal FQL. You can play around with the FQL structure using the Graph API Explorer tool https://developers.facebook.com/tools/explorer