使用 facebook API 检索新闻提要

发布于 2024-08-19 19:29:45 字数 237 浏览 7 评论 0原文

您好,我已经寻找了几个小时,但找不到检索用户新闻提要的 API 调用(即您在 http://www.facebook.com/home.php)。我认为这应该是一件非常简单的事情。我错过了什么?
我更喜欢使用 FQL 的答案,但其他 API 方法也可以,因为我认为我可以在它们之间进行转换。

Hi I have been looking for hours but cannot find the API call that retrieves a user's news feed (i.e the thing that you see at http://www.facebook.com/home.php). I think this should be something extremely easy. What did I miss?
I would prefer an answer with FQL, but other API methods will be just fine, as I think I can translate between them.

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

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

发布评论

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

评论(3

仅冇旳回忆 2024-08-26 19:29:45

https://graph.facebook.com/me/home

注意:/me/home 检索新闻源的过时视图。目前这是一个已知问题,我们(Facebook)没有任何近期计划让它们恢复平衡。

https://graph.facebook.com/me/home

Note: /me/home retrieves an outdated view of the News Feed. This is currently a known issue and we (Facebook) don't have any near term plans to bring them back up into parity.

掀纱窥君容 2024-08-26 19:29:45

我找到了!方法是在信息流中查找来自您朋友的用户的帖子。这有点烦人,因为仅仅完成一些非常基本的任务就需要付出双倍的努力。在 Objective-C 中使用 FBConnect 代码如下所示:

NSString *connections = [NSString stringWithFormat:@"select target_id from connection where source_id == %lld", _uid];
NSString *fql = [NSString stringWithFormat:@"select message from stream where source_id in (%@)", connections];
NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
[[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params];

I found it! The way is to look in the stream for post from users that are your friends. This is kind of annoying because it takes double the effort just to do some very basic task. In Objective-C using FBConnect the code look like this:

NSString *connections = [NSString stringWithFormat:@"select target_id from connection where source_id == %lld", _uid];
NSString *fql = [NSString stringWithFormat:@"select message from stream where source_id in (%@)", connections];
NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
[[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params];
So要识趣 2024-08-26 19:29:45

http://developers.facebook.com/docs/reference/fql/stream

第一个例子是如何正确获取新闻源。

http://developers.facebook.com/docs/reference/fql/stream

the first example is how to properly get the news feed.

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