[英]How to get all Facebook posts for a particular user using Graph API
like the subject states I would like to get a list of (public) posts for some user. 像主题状态一样,我想为某个用户获取(公开)帖子列表。 I was expecting that " https://graph.facebook.com/search?q=from%3Dsome_user&type=post " might work but I'm getting nothing.
我原以为“ https://graph.facebook.com/search?q=from%3Dsome_user&type=post ”可能有用,但我什么也没得到。
Assume that xxx is either a valid user name or id where person don't necessary need to be in any relation with the person whose access token is used (in case the AT is needed). 假设xxx是有效的用户名或id,其中不需要与使用访问令牌的人员有任何关系的人(如果需要AT)。
Is this even possible? 这有可能吗? Any ideas?
有任何想法吗?
EDIT: If nothing, I will go with " https://graph.facebook.com/user-id/posts " but I would really like to get access to public posts via "search". 编辑:如果什么都没有,我将使用“ https://graph.facebook.com/user-id/posts ”,但我真的很想通过“搜索”访问公共帖子。
Thanks in advance. 提前致谢。
ps I'm working on Android but not using the SDK. ps我正在使用Android,但未使用SDK。
It doesn't seem like searching for posts that way would be efficient on either end. 似乎无论哪种方式都无法高效地搜索帖子。
If you have the user's id then use the posts, feed, or home. 如果您具有用户ID,请使用帖子,提要或主页。
Facebook says: Facebook说:
You can also search an individual user's News Feed, restricted to that user's friends, by adding aq argument to the home connection URL:
您还可以通过在本地连接URL上添加aq参数来搜索单个用户的新闻提要(仅限该用户的朋友):
News Feed: https://graph.facebook.com/me/home?q=facebook
新闻订阅源: https : //graph.facebook.com/me/home?q=facebook
From there you could add the from.id with correct privacy responses to a separate object. 从那里,您可以将带有正确隐私响应的from.id添加到单独的对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.