FQL Post Insights 不返回任何内容

发布于 2024-12-18 23:55:53 字数 801 浏览 1 评论 0原文

我试图找出为什么获取帖子见解的简单 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月竹挽风 2024-12-25 23:55:53

从 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文