tags:

views:

310

answers:

1

hello all 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 sure its related to getting the user notifications ) that suppose to return me callback . but im my case i like to invoke simple http command and get the user notification like ( like the old notification api's ) how can i do it now ? Thanks

A: 

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);
  }
);
syockit

related questions