FQL/Graph API 检索页面墙上的所有帖子(除了一个)

发布于 2024-12-14 00:00:34 字数 645 浏览 2 评论 0原文

我遇到的问题是,从页面墙上查询帖子会返回除一篇帖子之外的所有帖子。我无法解释为什么这篇文章没有被检索到。

我希望有人能帮助我了解 FQL/Graph API 失败的原因。

https://www.facebook.com/pages/WILIKE-INWI-Uni -Graz/295421080475868

相关帖子来自“Doris Rath”。

这是我使用的查询(除了这个特定的帖子之外,它工作得很好)。

    $streamQuery = 'SELECT post_id, message, permalink, likes, actor_id, created_time FROM stream WHERE source_id';
    $streamQuery .= '= 295421080475868 AND message != "" LIMIT 1000 OFFSET 0';

仍然没有解释为什么请求不起作用...:(

仍然没有解决方案!有一个返回 false 的帖子的新 ID:286722628036968

i have the problem that querying posts from the wall of a page returns all posts except one post. I can't explain why this post isn't retrieved.

I hope someone could help me why FQL/Graph API is failing.

https://www.facebook.com/pages/WILIKE-INWI-Uni-Graz/295421080475868

The conecerning post is that one from "Doris Rath".

This is the query i use (which works fine except for this specific post).

    $streamQuery = 'SELECT post_id, message, permalink, likes, actor_id, created_time FROM stream WHERE source_id';
    $streamQuery .= '= 295421080475868 AND message != "" LIMIT 1000 OFFSET 0';

There's still no explanation why the request does not work ... :(

Still no solution! Have a new ID of a post which returns false: 286722628036968

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

瑶笙 2024-12-21 00:00:34

我认为这篇文章包含了您的问题的答案 Facebook即使帖子是公开的,Graph API 也会返回“false”

该帖子并非真正公开,因为当我注销时,Doris Rath 的帖子不可见。

完成这篇文章的唯一方法是通过具有 manage_pages 权限的登录和授权用户。

I think that this post contains the answer to your question Facebook Graph API returns 'false' even though post is public

The post is not truly public, as when I logged out, the post from Doris Rath was not visible.

The only way to get through this post, would be through a logged in and authorised user with manage_pages permission.

甜扑 2024-12-21 00:00:34

这是因为发布该消息的用户已在其个人资料中关闭了该应用程序
应用程序设置

在此处输入图像描述

检查图像。

It is because the user who had posted the message has turned off the app in his profile
setting of app

enter image description here

Check the image.

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