简体   繁体   English

如何使用Graph API获取特定用户的所有Facebook帖子

[英]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.

相关问题 如何使用facebook open graph api获取所有对象,即特定用户喜欢的页面上的帖子,即“我”? - How to get all objects i.e posts on a page liked by a particular user i.e. 'me' with facebook open graph api? 如何在Facebook图形API中获得user_posts的访问权限 - How to get access for user_posts in facebook graph api 如何使用Facebook API Android获取用户时间轴帖子 - how to get user timeline posts using facebook api android 无法在Android中使用Graph API获取Facebook墙贴的所有评论 - Unable to get all comments of facebook wall posts using Graph API in android 如何使用图形api获取Facebook用户相册? - How to get Facebook user photo albums using graph api? 如何使用 Graph API for android 获取 facebook 用户的位置 - how to get location of facebook user using Graph API for android 如何在Android中使用Graph API获取喜欢我的Facebook帖子的人的数据 - How to get data of people who likes my facebook posts using Graph API in android 如何使用Facebook图形API获取公共页面的帖子? - How to fetch a public page's posts using facebook graph api? 如何使用Facebook Graph Api根据位置获取所有Facebook公共事件? - How can I get all Facebook public events based on location using Facebook Graph Api? 如何在 Android 上使用 Facebook Graph API 获取用户相册列表 - How to get a list of user photo albums using the Facebook Graph API on Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM