Facebook graph API不会为用户返回所有帖子

编程入门 行业动态 更新时间:2024-10-28 18:21:43
本文介绍了Facebook graph API不会为用户返回所有帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试通过Facebook graph API获取所有用户帖子.但是永远都不要得到所有.

I am trying to get all user posts through Facebook graph API. But never get all of it.

当我尝试通过以下路径进行操作时:"me/posts" (param limit = 5000),我得到了用户写的所有帖子(就像我想要的一样),但是没有在特定日期之前发布.意思是,这样一来,我就不会在特定日期之前收到任何帖子(就我而言,它不是在2011年1月29日之前).

When I tried it through the path: "me/posts" (with param limit=5000), I get all of the posts that wrote by the user (like I wanted), but not before specific date. Mean, in this way I am not getting any of the posts before specific date (in my case it was not before 29/01/2011).

当我尝试通过以下路径进行操作时:"me/feed" (参数限制为5000),我会从个人资料墙上获得所有类型的帖子,甚至包括用户未撰写的帖子以及从Facebook的开头(2007年)开始的帖子. 但是,随着时间的流逝,这种结果会丢失我的一些帖子.当我在个人资料页面上浏览旧帖子时,我可以看到很多我写的帖子,但不在结果中.

When I tried it through the path: "me/feed" (with param limit=5000), I get all kind of posts from my profile wall even posts that not the user wrote and posts from start of my Facebook (2007). But, this result is missing some of my posts through time. When I roll in my old post on my profile page I can see many posts that I wrote but its not in the result.

当我尝试通过fql进行操作时:

When I tried it through the fql:

"SELECT post_id, actor_id, created_time, updated_time, action_links, permalink, message, action_links FROM stream WHERE source_id = me() LIMIT 5000"

我得到与尝试路径"me/feed"相同的结果.而且缺少相同的帖子.

I get the same result as when I tried with the path: "me/feed". And the same missing posts is missing.

还有其他人也有这个问题吗?

Is anybody else had this problem too?

很抱歉,我不够清楚.我只对当前用户写的帖子感兴趣,而对他的朋友帖子不感兴趣.我知道有时候我只能从Facebook获得混合帖子,例如当我询问路径:"me/feed"时.但是,我的目的是在服务器上过滤它们.

I am sorry that I wasn't clear enough. My interest is only on the posts that current user wrote, not on his friends posts. I know that sometimes I can get from Facebook only mixed posts - like when I ask for the path: "me/feed". But, my intention was to filter them on my server.

数据中丢失的帖子(我可以在墙上看到)是我的帖子,而不是朋友的帖子.

The posts that missing from the data (and I can see on my wall) is my post, not my friend's posts.

推荐答案

当您的朋友设置了隐私设置以致无法通过Facebook平台发布其帖子时,可能会发生这种情况.这可能就是您看到差异的原因.

This could happen when your friends have set their privacy settings so that their posts aren't made available via the Facebook platform. That's probably why you are seeing the difference.

更多推荐

Facebook graph API不会为用户返回所有帖子

本文发布于:2023-11-05 16:11:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1561287.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:会为   帖子   用户   Facebook   graph

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!