asynchronous - Find notification source(/post id) using facebook graph api -


i using facebook graph api query of user's notifications - far good. want query post caused notification. in this documentation on facebook says response.data[i].object object whole post be, unfortunately don't .object @ all. function getting notifications:

getusernotifications: function () {          var deferred = $q.defer();         fb.api(             "/me/notifications", {since:'last week','limit': limit},             function (response) {                 deferred.resolve(response);             }           );         return deferred.promise;     }, 

and here permissions use:

fb.init({     appid: id,     status: true, // check login status     cookie: true, // enable cookies allow server access session     xfbml: true, // parse xfbml     read_stream: true,     manage_notifications: true,     user_groups: true  }); 

of course, every permission later injected in login scope:

fb.login(function(response){},                     {scope: 'user_status,user_photos,read_stream,publish_stream,                              user_likes,publish_actions,                              read_friendlists,rsvp_event, user_groups'                     }); 


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -