> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Meta App Review

> Step-by-step guide for Meta App Review, Business Verification, Advanced Access for Instagram permissions, Data Handling, and Live Mode.

When moving your Instagram app from Development Mode to Live Mode, Meta requires you to submit your permissions for **Meta App Review** to obtain **Advanced Access**.

In Development Mode, webhooks and automations only run for Instagram Testers. Once Advanced Access is approved and your app is in Live Mode, Instance can automate DMs, comments, and content publishing for any public Instagram follower worldwide.

***

## 1. Meta Developer Portal Checklist

1. **Toggle App Mode to Live**: In the top bar of the [Meta Developer Dashboard](https://developers.facebook.com/), switch **App Mode** from **Development** to **Live** (once your settings and verification are ready).
2. **Basic App Settings (`App settings -> Basic`)**:
   * **Display Name**: Your app name (e.g., `Instance CRM`).
   * **App Domains**: Your live domain (e.g., `yourdomain.com`).
   * **Privacy Policy URL**: Live HTTPS link (`https://yourdomain.com/privacy`).
   * **Terms of Service URL**: Live HTTPS link (`https://yourdomain.com/terms`).
   * **User Data Deletion**: Live HTTPS URL (`https://yourdomain.com/privacy/data-deletion`).
   * **App Icon**: `1024 x 1024` px square logo.
   * **Category**: **Messaging** (Recommended) or **Business and Pages**.
3. **Complete Business Verification**:
   * Under **App settings -> Basic -> Verification** (or **Meta Business Portfolio -> Security Center**), click **Start Verification**.
   * Enter your legal business name and physical address matching your official registration documents character for character, upload an accepted document (Certificate of Incorporation, Tax/GST/EIN registration, or business bank/utility statement), and verify via OTP.
4. **Verify Production Webhooks**:
   * Callback URL: `https://api.yourdomain.com/api/webhook/instagram`
   * Verify Token: Matches `META_WEBHOOK_VERIFY_TOKEN` in production `.env`.
   * Redirect URI: `https://app.yourdomain.com/api/instagram/callback`.

***

## 2. Select the Required Permissions

Under **Instagram -> API setup with Instagram Business login -> App Review for Instagram**, request **Advanced Access** for these permissions used by Instance:

| Permission | Required? | How Instance Uses It |
| :- | :- | :- |
| **`instagram_business_basic`** | **Yes** | Reads connected account metadata and lead profile info (username, ID, avatar, follower count, account type). |
| **`instagram_business_manage_messages`** | **Yes** | Ingests DMs, Story mentions/replies/reactions, and icebreakers; sends automated DMs, AI replies, and Sales Chat messages. |
| **`instagram_business_manage_comments`** | **Yes** | Ingests post, Reel, and Live comments; sends automated public replies, likes comments, and hides spam/toxic comments. |
| **`instagram_business_content_publish`** | **Yes** | Publishes scheduled Photos, Reels, Carousels, and Stories from the Content Scheduler (`Dashboard -> Posting`). |
| **`human_agent`** | **Yes (for 7-day replies)** | Lets human sales reps reply in Sales Chat between 24 hours and 7 days after a lead's last message using Meta's `HUMAN_AGENT` tag. |
| **Facebook Page Permissions** | **No** | Leave unchecked. Instance uses Instagram Business Login directly. |

***

## 3. Allow Usage Templates (Copy-Paste Ready)

For each permission, Meta asks how you use it, how it adds value, why it is necessary, and a screencast walkthrough.

### Permission 1: `instagram_business_basic`

> **How we use this permission:**\
> "We use `instagram_business_basic` only to read basic profile information for the Instagram Business or Creator accounts that a user connects to Instance, and for the Instagram users who message or comment on them (username, account ID, profile picture, follower count, and account type). We do not change account settings or access private data beyond this scope.\
> **Value for users:** Users see human-readable handles, avatars, and follower context in their Sales Chat inbox and CRM pipeline instead of raw IDs.\
> **Why it is necessary:** Without this permission, Instance cannot identify the connected business account, verify follower status for Follower Gate automations, or attach incoming messages to the right CRM lead."

### Permission 2: `instagram_business_manage_messages`

> **How we use this permission:**\
> "We use `instagram_business_manage_messages` to receive incoming DMs, Story mentions, Story replies, and icebreaker taps via webhooks, and to send automated DM flows, AI Sales Chat replies, and human agent responses (including within Meta's 7-day `HUMAN_AGENT` window) on behalf of the connected account owner.\
> **Value for users:** Creators and businesses can manage a unified Sales Chat inbox, qualify leads, and automate responses 24/7.\
> **Why it is necessary:** Core messaging, inbox, and DM automation features cannot operate without permission to read and send messages."

### Permission 3: `instagram_business_manage_comments`

> **How we use this permission:**\
> "We use `instagram_business_manage_comments` to listen to incoming comments on posts, Reels, and Live videos, post automated public replies, like qualifying comments, and hide harmful or spam comments using our Negative Sentiment Shield.\
> **Value for users:** Users turn post engagement into structured CRM leads and protect their comment sections from spam automatically.\
> **Why it is necessary:** Comment-to-DM workflows and comment moderation require reading comment webhooks and replying/hiding via the Graph API."

### Permission 4: `instagram_business_content_publish`

> **How we use this permission:**\
> "We use `instagram_business_content_publish` in our Content Scheduler (`Dashboard -> Posting`) so authenticated workspace owners can schedule and publish Photos, Reels, Carousels, and Stories directly to their connected Instagram Business or Creator account.\
> **Value for users:** Teams can plan their content calendar, preview posts, and link scheduled posts directly to Comment-to-DM automations in one workspace.\
> **Why it is necessary:** Automated publishing of user-approved scheduled media requires `instagram_business_content_publish`."

### Permission 5: `human_agent` (7-Day Human Reply)

> **How we use this permission:**\
> "We use the `human_agent` feature only inside our manual Sales Chat inbox (`Dashboard -> Sales Chat`) when a human sales rep replies to a customer between 24 hours and 7 days after the customer's last message. Automated bots and AI sequences never use `human_agent` and stay strictly within the 24-hour standard window.\
> **Value for users:** Sales teams can answer follow-up questions, resolve support issues, and close deals with leads who take more than a day to respond, without losing the conversation.\
> **Why it is necessary:** Without `human_agent`, human reps cannot reply in Sales Chat once 24 hours pass after a customer's message."

***

## 4. Data Handling and Review Instructions

* **Data Handling**: Declare your cloud infrastructure (PostgreSQL database, Redis queue, Cloudflare R2 media storage, and any configured AI provider) and confirm data deletion is supported when a user disconnects their Instagram account or closes their workspace.
* **Review Instructions**: Provide a live testing URL (`https://app.yourdomain.com`), test account credentials, step-by-step navigation to `Dashboard -> Settings -> Account Profile`, `Sales Chat`, `Automations`, and `Posting`, and upload a clear screencast demonstrating all 4 permissions end-to-end.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.