【问题标题】:how to get posts from my newsfeed on facebook containg certain text using restfb如何使用restfb从我在facebook上的新闻源中获取包含某些文本的帖子
【发布时间】:2013-04-02 17:57:05
【问题描述】:

嗨,我的任务很直接 fw:
我想查询我的新闻源中包含的所有帖子(从过去 24 小时开始),其中包含 “nice” 字样。
我正在使用 restFB 客户端。
我试过这个:(使用 Graph API)

Connection<Post> targetedSearch = facebookClient.fetchConnection(
        "me/home?q=facebook", Post.class, Parameter.with("q", "nice"),
        Parameter.with("type", "post"));

【问题讨论】:

    标签: android facebook facebook-graph-api restfb android-facebook


    【解决方案1】:

    这是我能找到的最佳答案,来自here,正在使用 FQL

    SELECT post_id, app_id, source_id, updated_time, filter_key, attribution, message, action_links, likes, permalink FROM stream WHERE filter_key ="nf" and strpos(lower(message),lower("nice")) > 0
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-20
      • 1970-01-01
      • 2012-08-12
      • 1970-01-01
      • 1970-01-01
      • 2011-05-05
      • 1970-01-01
      相关资源
      最近更新 更多