fish man
fish man

Reputation: 2700

facebook graph search type=post how to get post's comments

In facebook graph search, type=post

https://graph.facebook.com/search?q=watermelon&type=post&token=XXXXXXXXX

It return data:

{
   "data": [
      {
         "id": "100001477475394_211188005607114",
         "from": {
            "name": "Jerry Garcia",
            "id": "100001477475394"
         },
         "message": "I like watermelon,fried chicken and koolaid !\nWhat does that make me ? lol",
         "type": "status",
         "created_time": "2011-09-07T21:33:28+0000",
         "updated_time": "2011-09-07T21:33:58+0000",
         "likes": {
            "data": [
               {
                  "name": "Natalie Hurtado",
                  "id": "100002486021428"
               }
            ],
            "count": 1
         }
      }
   ]
}

So how to get this post's comment? (fql also welcome)

and what is the {data->id} (100001477475394_211188005607114), I tried fql.steam query nothing return, so it is not a post_id. how can I get this post id?

Thanks.

Upvotes: 0

Views: 1962

Answers (1)

Luca Rocchi
Luca Rocchi

Reputation: 6484

add &fields=comments(,other fields) or make another call to the graph using id/comments for detail see http://developers.facebook.com/docs/reference/api/post/ look for comments

Upvotes: 1

Related Questions