Facebook 订阅 API - 页面评论推送通知?
Facebook REST 文档上的订阅 API 看起来就像它们允许我在任何更改时收到推送通知:
https://developers.facebook.com/docs/reference/api/subscription/
根据页面上的文档,我可以订阅页面对象的 feed 连接:
https://developers.facebook.com/docs/reference/api/page/ (没有星号)。
但我不明白哪些页面会向我发送通知以及一般会发生什么。
当我尝试通过用户墙和页面提要的测试订阅来实现此目的时,当用户墙上的某些内容发生更改时,我确实收到了通知,但页面没有更改。
您有使用 Facebook 订阅 API 的经验吗?
The subscriptions API on the Facebook REST documentation looks, like they would allow me to get Push notifications, whenever something is changed:
https://developers.facebook.com/docs/reference/api/subscription/
According to the documentation on the page, I can subscribe to the feed connection of the page object:
https://developers.facebook.com/docs/reference/api/page/ (There is no asterisk).
But I don't understand which pages will send me notifications and what happens in general.
When I tried to implement this with a test subscription for the user wall and page feed, I did get notifications when something was changed on the users wall, but not for the page.
Do you have any experience with the Subscriptions API from Facebook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此处:https://developers.facebook.com/ docs/graph-api/real-time-updates/v2.2
根据您的信息,我无法判断为什么您没有收到页面帖子,但如果您收到实时更新,您会看到该请求将具有
application/json
内容类型,并且正文将包含已更改的pageid
。所以你无法分辨哪个页面发生了变化,这确实不是什么问题。
See here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.2
I can't tell why you didn't receive a page post depending on your information, but if you received the real time updates, you will see that the request will have a content type of
application/json
and the body will contain apageid
that has changed.So it's really not a problem that you can't tell which page has changed.