facebook - page-id/notifications returns an empty array -
i'm writing desktop application using facebook sdk .net. app must somethink every post, comment or message sent facebook page. i'm using page-id/notifications api command:
page-id/notifications?fields=id,title,unread,application,from,message,object&limit=250
this command returns correct unseen count in summary section data array empty:
{ "data": [ ], "summary": { "unseen_count": 2, "updated_time": "2016-02-05t14:53:10+0000" } }
if write new wall post on page or send private message page, unseen_count updated data array empty. if someoune write comment exisiting wall post unseen_count updates , data array populated comment notification (only type of notification added data array):
{ "data": [ { "id": "notif_xxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxx", "title": "yyyyy yyyyyyy commented on post.", "unread": 1, "application": { "link": "https://www.facebook.com/games/?app_id=xxxxxxxxxxx", "name": "feed comments", "id": "1967xxxxxxx" }, "from": { "name": "mxxxx sxxxxxx", "id": "1020xxxxxxxxxxxxx" }, "object": { "created_time": "2016-02-05t14:52:32+0000", "message": "abcdefghilmnopqrstuvz", "id": "36xxxxxxxxxxxx0_546xxxxxxxxxxx0" }, "to": { "name": "ixxxxxxx", "id": "36xxxxxxxxxxxxx" } } ], "paging": { "previous": "xxxxxxxxxxxxxxxxxxxxxxxxxx", "next": "xxxxxxxxxxxxxxxxxxxx }, "summary": { "unseen_count": 3, "updated_time": "2016-02-05t14:55:23+0000" } }
is api bug or there wrong in api request? cannot use real time notification.
thanks marco
Comments
Post a Comment