1

I am using facebook4j to collect posts on a particular topic. The code runs all find and I am able to search the topics. But the result also contains the irrelevant data. Example if i search a keyword such as "messi", i am expecting the posts that contains the word "messi". But the result contains the posts of a user whose name is "messi". How can i avoid this problem?

My code is as follows

Facebook facebook = FacebookFactory.getSingleton();
        facebook.setOAuthAppId("********", "*****************");
        facebook.getOAuthAppAccessToken();

ResponseList<Post> results = facebook.searchPosts("messi");
        for (Post result : results) {
            System.out.println("************");
            System.out.println(result);
        }
1
  • There's nothing you can do to influence the results. Also, be aware that the Public Post Search will be deprecated on April 30th, 2015. Commented Oct 13, 2014 at 10:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.