Instagram DM Automation for Hospital Patient Management
We subscribe Facebook Pages (connected to Instagram Business accounts) to webhook events to receive real-time message notifications from patients interested in Korean medical tourism.
Without this permission, we cannot call POST /{page-id}/subscribed_apps API to enable webhook subscriptions, which is required to receive Instagram DM notifications in real-time.
Hospital administrators can receive instant notifications when international patients send DM inquiries about medical procedures, enabling 24/7 automated responses and better patient care.
Permissions requested: pages_show_list, pages_manage_metadata, pages_messaging
â ī¸ Please complete Step 1: Facebook Login first to enable Messenger sending.
message_idpages_messaging permission.
POST /{page-id}/subscribed_apps
API with subscribed_fields=messages parameter.
https://win-sns-dm-backend-hhlhhgenaq-du.a.run.app/webhooks/instagram/messages
Webhook Endpoint:https://win-sns-dm-backend-hhlhhgenaq-du.a.run.app/webhooks/instagram/messagesSubscribed Fields:messagesPlatform:Google Cloud Run (Seoul Region)Database:AlloyDB (PostgreSQL)API Flow:1. User grants pages_messaging permission 2. App calls POST /{page-id}/subscribed_apps?subscribed_fields=messages 3. Meta sends message events to our webhook endpoint 4. Webhook stores messages in database and triggers auto-response