im making switch to the new Graph API , and i try to replace all the rest api with the new Graph api reading the docs i saw i have some kind of real time function ( im not s
As of Aug 1 2010, there are still no methods for notifications in the new Graph API (I'm not sure if there are any plans for migrating that). You need to use the old REST API for that.
Use FB.api in place of old REST API. It could be something like this:
FB.api(
  {
    method: 'notifications.get'
  },
  function(response) {
    alert("Number of unread messages: " + response.messages.unread);
  }
);