我正在试图弄清楚为什么一个简单的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
的结果。
我不明白我做错了什么。有人可以帮忙吗?
谢谢!
DW
答案 0 :(得分:0)
似乎有一个错误在fql.multiquery的“stream”上运行查询,我已经报告了它。尝试将查询作为单个查询来测试:fql.query