【问题标题】:How to get news feed using Facebook graph api?如何使用 Facebook 图形 api 获取新闻提要?
【发布时间】:2012-09-06 06:14:38
【问题描述】:

我想使用 Facebook graph api 获取我的新闻提要(就像 facebook 主页上显示的一样)

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

但是,facebook api document 表示

this is an outdated view, does not reflect the News Feed on facebook.com:

还有其他方法吗?

提前致谢

【问题讨论】:

    标签: facebook facebook-graph-api feed


    【解决方案1】:

    是的,有

    https://graph.facebook.com/[YOUR_ID]/home
    

    请注意,您将按最近顺序而不是按热门故事顺序(这是您访问时获得的默认视图)获得您在新闻提要中看到的几乎所有内容您自己的新闻提要。

    另外需要注意的是,您不会在结果中获得提升的故事。

    【讨论】:

      【解决方案2】:

      对于所有想知道这是否仍然有效的人:

      graph.facebook.com/[YOUR_ID]/home

      为此,您需要 read_stream 权限。但是您不会获得此权限,因为它已被弃用。

      不幸的是端点https://graph.facebook.com/[YOUR_ID]/home和权限是deprecated and dont work anymore since version 2.4, according to the changelog(搜索read_stream)。

      目前没有其他方法可以阅读新闻提要。只能获取用户的帖子。

      参考:Get Home feed requires read_stream which is deprecated?

      【讨论】:

        猜你喜欢
        • 2011-08-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-09-06
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多