0

我正在尝试获取 facebook id 的所有提要。我使用图形资源管理器工具获得了所有提要,但是当我在 android 中使用简单的 facebook 2.0 时,我没有获得所有提要,但很少。

   `String entityId = "me";
    String edge = "feed";
    //Bundle params = new Bundle();
    //params.putString("fields", "feed");
    simpleFacebook.get(entityId, edge, null, onActionListener);`

上面的代码是我简单的 facebook 代码的一部分。

我想要类似于me?fields=feed的结果。我怎样才能得到结果?我不想使用 facebook SDK 3.15.0。

非常感谢您的帮助。

4

1 回答 1

1

使用getPosts()方法:

String entityId = ...;
mSimpleFacebook.getPosts(entityId, PostType.ALL, onPostsListener);

您可以按以下方式过滤:

  • PostType.ALL- 出现在用户墙上的所有已发布内容(链接、状态、照片...)。(使用图形路径: * {entityId}/feed

  • PostType.LINKS- 实体发布的链接。(使用图形路径{entityId}/links:)

  • PostType.POSTS- 实体发布的帖子。(使用图形路径{entityId}/posts:)

  • PostType.STATUSES- 实体发布的状态更新帖子。(使用图形路径{entityId}/statuses:)

  • PostType.TAGGED- 标记此人的帖子。(使用图形路径{entityId}/tagged:)

于 2014-06-20T10:41:21.587 回答