Facebooker Rails 插件 - 通知

发布于 2024-07-14 11:18:13 字数 64 浏览 4 评论 0原文

我有一个很愚蠢的问题:如何发送通知? 例如,当我在我的应用程序上注册用户时,我想用以下方式欢迎他/她 通知。

I have quite silly question: how to send notifications?
For example, when I register user on my app, I want to welcome him/her with
notification.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

┼── 2024-07-21 11:18:13

假设您正在使用 Facebooker(实际上您应该使用 Facebooker),您可以创建一个 Publisher 类

Assuming you're using Facebooker (which, really, you should be), you can create a Publisher class.

痴者 2024-07-21 11:18:13

您还可以使用 facebook_session.send_notification([user_fb_id], "notification message") (在您的控制器中)。 这将是应用程序到用户的通知,您每周可以发送给用户的通知数量有限。

要查看此限制,您可以使用以下调用:
Facebooker::Session.create.post('facebook.admin.getAllocation', :integration_point_name => 'announcement_notifications_per_week')

You can also use facebook_session.send_notification([user_fb_id], "notification message") (in your controller). This will be an app-to-user notification, and you have a limited number that you can send to users each week.

To see this limit you can use the following call:
Facebooker::Session.create.post('facebook.admin.getAllocation', :integration_point_name => 'announcement_notifications_per_week')

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文