简体   繁体   中英

Realtime Updates: subscribing to notifications?

Could anyone point me in the best direction to "subscribe" to notifications for a user? I tried playing around with the realtime updates API but apparently Facebook blocks subscribing to notifications.

I get an error:

Error Couldn't save 'user': Application cannot subscribe to notifications

when I try to setup realtime updates for my app. If realtime updates isn't a possibility, would the only other way be for my server to poll Facebook to see if anything has changed for the user?

I feel like it should be really easy for Facebook to just enable subscribing to notification fields for the User object...

For anyone else having problems with this, facebook lists everything you can subscribe to at: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#subscribefields

However they list three things you cannot subscribe to (for the user object), these are: friend_request, threads, notifications.

您不能,实时更新意味着“用户更新字段”,例如姓名,年龄,性别等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM