0

Hi my task is very straight fw:
I want to query my newsfeed for all the posts it contains(from the last 24 hrs), that has the word "nice" in them.
I am using restFB client.
I tried this: (using Graph API)

Connection<Post> targetedSearch = facebookClient.fetchConnection(
        "me/home?q=facebook", Post.class, Parameter.with("q", "nice"),
        Parameter.with("type", "post"));
Elad Gelman
  • 1,182
  • 1
  • 13
  • 27

1 Answers1

0

This is the best Answer I could find is from here, is using 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
Elad Gelman
  • 1,182
  • 1
  • 13
  • 27