(#10) This message is sent outside of allowed window
A message was sent after Facebook's 24-hour window (7 days for people who came from an ad). Shorten wait times, use a message tag, or get the person to reply first.
How it appears in your error log: (#10) This message is sent outside of allowed window. Learn more about the new policy here: https://developers.facebook.com/docs/messenger-platform/policy-overview - code: 10
Under Facebook's rules, a page can message a person freely only within a limited time. This error appears when the bot tries to send a message after that time has passed.
Why it happens
- The standard limit: 24 hours after the person last interacted with your chatbot.
- People who came from an ad: if the person clicked a Facebook ad (Click-to-Messenger) and wrote to you for the first time, the window lasts up to 7 days.
How to fix it
Check the person's last activity
In the panel, open Inbox (Харилцан яриа) and look at Last Interaction (when they last wrote or pressed a button) on the profile of the person who got the error. Check whether more than 24 hours (7 days if they came from an ad) have passed since then.
Shorten the wait in your flow
Open Flows (Өрөлт) and open the flow that sends the message. If it uses a Wait block, set the wait to less than 24 hours, for example 23 hours.
Also add a Condition block before the message block that checks whether Last Interaction is within 24 hours.
Use a message tag for essential notices
For a notice or broadcast that must go out after 24 hours, open the message block's settings and turn on a Message Tag: Account Update, Post Purchase Update, Confirmed Event Update or Human Agent.
Note that these tags can't be used for messages with promotional content.
Get permission for marketing messages
To send marketing or promotional messages after 24 hours, create a request with Active contacts within 24 hours in Broadcast Messages (Зарлал). Send the request while the person is still within the 24-hour window, and ask them to press the “Get notifications” button to give permission (opt-in).
Write to the person by hand
When an operator writes by hand from Inbox (Харилцан яриа) in the panel to someone active in the last 7 days, the system sends it with the HUMAN_AGENT tag automatically.
If more than 7 days have passed and you have no OTN permission, go to Page Inbox in Meta Business Suite and write to the person by hand. As soon as they reply, open their chat in Inbox (Харилцан яриа) in the panel and click Send Flow in the panel at the bottom right to send the chatbot flow again.
Tips
- Sponsored Messages: you can reach people outside the 24-hour window with a paid ad.
- One-Time Notification (OTN): you can send a message based on a one-time notification permission the person gave earlier.
You do this in the Chatbot panel.new-cp.smartbot.mn
Open Chatbot panel