Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I am creating Facebook applications for desktop application by using Java. In that getting the status of a user by using the URL https://graph.facebook.com/me/home?since=2012-07-03T13:00&limit=10&access_token=234dsfh5tnm54jhjnlwqerm545t6mdsfj7m, I am getting the newly updated status using since, but it's not working.

It is for getting the status after time 2012-07-03T13:00, but it is not working. How do I get the newly update status from the home timeline? Is there any other option this problem?

Java program

main(){
    Calling URl using the URL connect method for geting the response.
    // Responss in JSON format.
    for loop{
        Using JSON parsing, I am getting all the detail I need..
    }
}

The response when clicking the URL with the correct access token is:

{
   "data": [
      {
         "id": "0_171211973012167",
         "from": {
            "name": "Yuvan Shankar Raja",
            "category": "Musician/band",
            "id": "13022403265"
         },
         "story": "Yuvan Shankar Raja and Hari Haran shared a link.",
         "story_tags": {
            "0": [
               {
                  "id": 13022403265,
                  "name": "Yuvan Shankar Raja",
                  "offset": 0,
                  "length": 18,
                  "type": "page"
               }
            ],
            "23": [
               {
                  "id": 100000522808247,
                  "name": "Hari Haran",
                  "offset": 23,
                  "length": 10,
                  "type": "user"
               }
            ]
         },
         "picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQAdpxtY6MgcBKWs&w=120&h=100&url=http\u00253A\u00252F\u00252Fi3.ytimg.com\u00252Fvi\u00252FbeOgcOu-vQU\u00252Fmqdefault.jpg",
         "link": "http://www.youtube.com/watch?v=beOgcOu-vQU",
         "source": "http://www.youtube.com/v/beOgcOu-vQU?version=3&autohide=1&autoplay=1",
         "name": "BILLA 2 - TRAILER 2",
         "description": "Second trailer from the film Billa 2.",
         "icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yj/r/v2OnaTyTQZE.gif",
         "type": "video",
         "created_time": "2012-07-03T13:00:13+0000",
         "updated_time": "2012-07-03T13:00:13+0000",
         "comments": {
            "count": 0
         }
      },
      {
         "id": "13022403265_171211973012167",
         "from": {
            "name": "Yuvan Shankar Raja",
            "category": "Musician/band",
            "id": "13022403265"
         },
         "story": "Yuvan Shankar Raja shared a link.",
         "story_tags": {
            "0": [
               {
                  "id": 13022403265,
                  "name": "Yuvan Shankar Raja",
                  "offset": 0,
                  "length": 18,
                  "type": "page"
               }
            ]
         },
         "picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQBH5tHDuu1jGJjG&w=130&h=130&url=http\u00253A\u00252F\u00252Fi3.ytimg.com\u00252Fvi\u00252FbeOgcOu-vQU\u00252Fmqdefault.jpg",
         "link": "http://www.youtube.com/watch?v=beOgcOu-vQU&feature=share",
         "source": "http://www.youtube.com/v/beOgcOu-vQU?version=3&autohide=1&autoplay=1",
         "name": "BILLA 2 - TRAILER 2",
         "description": "Second trailer from the film Billa 2.",
         "icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yj/r/v2OnaTyTQZE.gif",
         "actions": [
            {
               "name": "Comment",
               "link": "https://www.facebook.com/13022403265/posts/171211973012167"
            },
            {
               "name": "Like",
               "link": "https://www.facebook.com/13022403265/posts/171211973012167"
            }
         ],
         "type": "video",
         "application": {
            "name": "Links",
            "id": "2309869772"
         },
         "created_time": "2012-07-03T13:00:13+0000",
         "updated_time": "2012-07-03T13:09:15+0000",
         "shares": {
            "count": 33
         },
         "likes": {
            "data": [
               {
                  "name": "Pugazhendhi Mani",
                  "id": "1166665116"
               },
               {
                  "name": "A.vivian Macedo",
                  "id": "1540057697"
               },
               {
                  "name": "Theven Thiran",
                  "id": "100000518210501"
               },
               {
                  "name": "Srivats Athindran",
                  "id": "100001893497970"
               }
            ],
            "count": 52
         },
         "comments": {
            "data": [
               {
                  "id": "13022403265_171211973012167_382086",
                  "from": {
                     "name": "Smart Sam",
                     "id": "100001753704372"
                  },
                  "message": "PLEASE LIKE OUR PAGE!\r\n( \u2193\u2193\u2193DOWN THERE\u2193\u2193\u2193 |\r\n\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\r\n\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\r\n\n\n\n\nhttps://m.facebook.com/profile.php?id=358729574175102&refid=5&m_sess=soAofmMQ-FXA0qa0Gne\r\n",
                  "created_time": "2012-07-03T13:03:28+0000"
               },
               {
                  "id": "13022403265_171211973012167_382111",
                  "from": {
                     "name": "Karthi Keyan",
                     "id": "100000730048637"
                  },
                  "message": "yuvan music rocks",
                  "created_time": "2012-07-03T13:09:15+0000"
               }
            ],
            "count": 5
         }
      }
   ],
   "paging": {
      "previous": "https://graph.facebook.com/100000694426233/home?limit=10&since=1341320413&value=1&redirect=1&access_token=fgjkkksdfksdfaccess token D&__previous=1",
      "next": "https://graph.facebook.com/100000694426233/home?limit=10&value=1&redirect=1&access_token=dfgjkkksdfksdfaccess token D&until=1341320412"
   }
}

From the above, how can I extract the newly arrived status when the statuses exceeds more than one page (by clicking 'next' from paging that also have all the statuses)? There is a separate status since the time 2012-07-03T13:00.

Bottom line: I need to take newly arrived status from the Facebook Graph API.

share|improve this question

closed as off topic by Barry Jul 3 '12 at 12:49

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question really belongs on Stack Overflow. I haven't migrated it as you haven't provided any code and it will more than likely get closed there too. Please edit your question to include code samples and then flag for migration. Thanks –  Barry Jul 3 '12 at 12:50
    
Please refer the link which is already posted.. give the solution.. Thanks in Advance. –  Thamarai Selvan Jul 5 '12 at 6:34

Browse other questions tagged or ask your own question.