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
Post a Comment