dongluo1853 2017-01-19 11:06
浏览 30
已采纳

如何更新从网站发送的FB通知?

Sending notification now is pretty easy. I have fallowed the dev docs here and done that.

I was wondering if it is possible to check if user has seen it and if not then overwrite it.

For example - I notify user that new product that might be of interest for him has been added to my database. I do it almost real-time. Now if 5 products are added within one hour user would get 5 fb notifications which would be pretty anoying experience for him. Much better user experience would be if he would get one notification saying that 5 products has been added.

When sending notifications I can add ref parameters that is used to group my notifications.

  1. Is there a way to query the fb api before sending notification if user with given fbid has seen notification with given ref parameter?
  2. Is there a way to overwrite (I guess delete last and send new updated one) notification if he has not seen it?

I am using PHP SDK v5.

  • 写回答

1条回答 默认 最新

  • dousi4900 2017-01-19 11:16
    关注

    Notifications can only be sent, you cannot access them after that in any way. There is no API for it.

    1. No
    2. No
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大