FQL/Graph API 检索页面墙上的所有帖子(除了一个)
我遇到的问题是,从页面墙上查询帖子会返回除一篇帖子之外的所有帖子。我无法解释为什么这篇文章没有被检索到。
我希望有人能帮助我了解 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这篇文章包含了您的问题的答案 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.这是因为发布该消息的用户已在其个人资料中关闭了该应用程序
应用程序设置
检查图像。
It is because the user who had posted the message has turned off the app in his profile
setting of app
Check the image.