开发者

can i mark notification as already read , using the graph api?

开发者 https://www.devze.com 2023-03-31 20:02 出处:网络
I\'m using this to get a notification list: https://graph.facebook.com/me/notifications/?incl开发者_开发百科ude_read=0

I'm using this to get a notification list:

https://graph.facebook.com/me/notifications/?incl开发者_开发百科ude_read=0

Now I'd like to mark them as read, how do I do this?


You should issue a POST request to https://graph.facebook.com/%notification_id%?unread=false where %notification_id% is the notification identifier you've received earlier (usually something like 'notif_XXXXX_YYYYY'). If you want to mark all notifications read, you can perform a batch request.

0

精彩评论

暂无评论...
验证码 换一张
取 消