可以将通知标记为已读,使用图形api? [英] can i mark notification as already read , using the graph api?

查看:189
本文介绍了可以将通知标记为已读,使用图形api?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用此方法获取通知列表:

  https://graph.facebook.com/me/ notifications /?include_read = 0 

现在我想将它们标记为已读,

您应该向 https://graph.facebook.com/发出POST请求。

%notification_id%?unread = false 其中%notification_id%是您之前收到的通知标识符(通常类似于notif_XXXXX_YYYYY)。
如果要标记所有读取的通知,您可以执行批处理请求。


I'm using this to get a notification list:

https://graph.facebook.com/me/notifications/?include_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.

这篇关于可以将通知标记为已读,使用图形api?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆