2

How can I get the price information of a sale post in Facebook? The following is my current code.

//Getting the facebook sale group's feed
Connection<Post> groupFeed = facebookClient.fetchConnection("xxxxxx/feed", Post.class,Parameter.with("fields", "from,message,picture"),Parameter.with("limit", 300));
for (List<Post> groupPosts : groupFeed) {
    for(Post groupPost:groupPosts){
        // TODO - to get the sale price of a sale post
    }
}
MeanGreen
  • 3,098
  • 5
  • 37
  • 63
zawhtut
  • 8,335
  • 5
  • 52
  • 76
  • It is currently not possible – WizKid Sep 30 '16 at 18:09
  • you have to parse the message. It seems it contains a title (up to 100 chars), the price, location and the optional description. It seems that there's a return after the title and a '-' before the location. Perhaps you can build a utility to split the message in the elements you can see in the input form. If my assumption is right, this should be possible. As admin of such a group you should have enough test data :) – Norbert Oct 04 '16 at 12:29
  • Thanks Norbert.By the way,I really love restfb – zawhtut Oct 05 '16 at 13:21

1 Answers1

0

With fb api - impossible

But look in code - class _l57 and thought of a simple script for CasperJS

Alex Muravyov
  • 502
  • 6
  • 13