Facebook APIWebhooksDeveloper Guide

How to Bypass Facebook Messenger’s 24-Hour Messaging Window Using Custom Webhooks

S
Sabbir Rahman
Author
7/11/20266 min read
How to Bypass Facebook Messenger’s 24-Hour Messaging Window Using Custom Webhooks

<h2>Understanding Meta’s 24-Hour Messaging Policy</h2>
<p>To prevent spam, Meta restricts businesses from sending free-form messages to customers if more than 24 hours have passed since the customer's last interaction. Sending promotional content outside this window can result in your page getting banned. However, for transactional updates, you can securely send messages using custom webhooks and approved Message Tags.</p>
<h3>1. Implementing Meta Message Tags</h3>
<p>Meta allows four tags for messages sent outside the 24-hour window. These tags must be included in your API payload:</p>
<ul>
<li><code>CONFIRMED_EVENT_UPDATE</code>: For updates regarding booking dates or appointments.</li>
<li><code>POST_PURCHASE_RECEIPT</code>: For sending purchase receipts, invoices, and shipment tracking info.</li>
<li><code>ACCOUNT_UPDATE</code>: For alerting users about changes in their registration or profiles.</li>
<li><code>HUMAN_AGENT</code>: Allows human support agents to respond within 7 days (requires page approval).</li>
</ul>
<h3>2. Technical Code Integration</h3>
<p>When sending a message payload using custom Node.js webhooks, specify the tag in the Graph API call:</p>
<pre><code>{
"recipient": { "id": "PSID" },
"message": { "text": "Your order has been shipped!" },
"messaging_type": "MESSAGE_TAG",
"tag": "POST_PURCHASE_RECEIPT"
}</code></pre>
<p>For more security and compliance guidelines, cross-reference our public <a href="/docs/security">Security and Compliance Documentation</a> in the official AutoZeniq repository.</p>

Share this article

Recommended Articles