How to Get Full Comment Information from Facebook.

Today I am working with facebook api SDK.We need to capture post information with comment details.When we access post information through below url.

http:// graph.facebook.com /pageid/posts

But above rest service gives only post information with recent 4 comments, I need to capture all comment from beginning of post.So after googling I have found two option one is feed and other is with postid.

http://graph.facebook.com/postid


with help of above rest url I am able to featch all comments with details:

Select Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"comments": {
    "data": [
      {
        "id": "319113218164972_390097827733177_2619460", 
        "from": {
          "name": "Parvez Alam", 
          "id": "100002446188147"
        }, 
        "message": "nice post..", 
        "created_time": "2012-12-03T05:22:36+0000"
      }, 
      {
        "id": "319113218164972_390097827733177_2619535", 
        "from": {
          "name": "Parvez Alam", 
          "id": "100002446188147"
        }, 
        "message": "Nice again", 
        "created_time": "2012-12-03T06:07:03+0000"
      }, 
      {
        "id": "319113218164972_390097827733177_2619899", 
        "from": {
          "name": "Parvez Alam", 
          "id": "100002446188147"
        }, 
        "message": "嗨,我是帕爾韋茲從印度新德里。", 
        "created_time": "2012-12-03T11:15:30+0000"
      }, 
      {
        "id": "319113218164972_390097827733177_2619902", 
        "from": {
          "name": "Parvez Alam", 
          "id": "100002446188147"
        }, 
        "message": "嗨,我是帕尔韦兹从印度新德里。", 
        "created_time": "2012-12-03T11:17:28+0000"
      }, 
      {
        "id": "319113218164972_390097827733177_2619944", 
        "from": {
          "name": "Parvez Alam", 
          "id": "100002446188147"
        }, 
        "message": "C'est Parvez.", 
        "created_time": "2012-12-03T11:43:34+0000"
      }
    ], 
    "count": 5
  }