recurring_notification_request
Sends a subscription request for recurring notifications in Messenger, which can be: daily, weekly and monthly.
recurring_notification_request(request=Hash)
recurring_notification_request(request=Hash)
Platforms
Messenger
Telegram
Usage
On-Demand
Reply
request param
title
String
Required.
The invitation/request title. The character limit is 65.
image_url
String
Optional. The URL of the image to display.
payload
String/Symbol
Required. After perms granted/removed event, a postback action block will be called if exists in the context.
frequency
Enum
Required.
:daily
, :weekly
or :monthly
.
reoptin
Boolean
Optional.
If true
, sends a re opt-in template to the user after the set period for Recurring Notifications ends.
By default false
timezone
String
Optional. Can be set by Pages which determine when they can send Recurring Notifications after user opt-in. If Pages do not specify a timezone, the default timezone is UTC. Please see the list of valid time zones.
Action Block recurring_notification
recurring_notification
To capture the subscription and unsubscription events with this action block.
Subscription Status
The user's subscription status can be verified by calling the messenger_recurring_notification_data()
method on the User
model.
Sending Notifications
To send a notification using the recurring notification token, just call send_using_token()
method instead of send()
.
Learn more about Messenger Recurring Notification in the official documentation.
Last updated