Search code examples
javafacebookrestfb

RestFB doesn't fetch posts from certain account for certain keywords?


We are trying to fetch posts which have 2 keywords (e.g. Chicago Sports) via the RestFB query interface. Its able to fetch posts from a certain account, but for some weird reason it skips the messages from a different account even though both of the messages have been marked as Public.

What could be the reason that its unable to fetch data from a certain account. Note: I am using account1's credentials to perform a search and the posts are present in account2, account3.

Connection<Post> messages = fbClient.fetchConnection("search",
        Post.class,
            Parameter.with("q", keyword),
            Parameter.with("limit", limit),
            Parameter.with("type", "post"));

Appreciate your help in resolving this issue.


Solution

  • Based upon the comments above, and with both search request via an SDK as well as the search request via the Explorer tool not returning public results, I would say you have a bug you should log at http://developers.facebook.com/bugs (you have to perform a search before Facebook "displays" the create bug button) and report back here with a link to the defect.