FQL Post Insights 不返回任何内容
我试图找出为什么获取帖子见解的简单 FQL 查询失败。我有manage_pages和read_insights权限,facebook不会给我任何关于我做错了什么的提示:
$query1 = "SELECT post_id, message, created_time, attachment FROM stream WHERE actor_id='XXXXXXXX' and source_id='XXXXXXXXX' order by created_time";
$query2 = "SELECT object_id, metric, value FROM insights WHERE object_id IN (SELECT post_id FROM #query1) AND metric = 'post_impressions_unique' AND end_time=end_time_date('2011-11-28') AND period=period('lifetime')";
$queries = '{
"query1": "' . $query1 . '",
"query2": "' . $query2 . '"
}';
$data = $facebook->api_client->fql_multiquery($queries);
当我查看$data
时,我看到很多关于结果的帖子$query1
,而我没有看到 $query2
的结果。
我不明白我做错了什么。有人可以帮忙吗?
谢谢!
数据仓库
I'm trying to figure out why a simple FQL query to get post insights is failing. I have manage_pages and read_insights permissions, and facebook won't give me any hints as to what I'm doing wrong:
$query1 = "SELECT post_id, message, created_time, attachment FROM stream WHERE actor_id='XXXXXXXX' and source_id='XXXXXXXXX' order by created_time";
$query2 = "SELECT object_id, metric, value FROM insights WHERE object_id IN (SELECT post_id FROM #query1) AND metric = 'post_impressions_unique' AND end_time=end_time_date('2011-11-28') AND period=period('lifetime')";
$queries = '{
"query1": "' . $query1 . '",
"query2": "' . $query2 . '"
}';
$data = $facebook->api_client->fql_multiquery($queries);
When I look at $data
, I see many posts for the results of $query1
, and I see nothing for the results of $query2
.
I don't understand what I'm doing wrong. Can anyone help?
Thanks!
DW
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 fql.multiquery 对“流”运行查询似乎存在错误,我已报告该错误。尝试将查询作为单个查询来测试:fql.query
There seems to be a bug running queries on "stream" from a fql.multiquery, i have reported it. try the queries as single queries to test: fql.query