Source: https://40bytes.com/blog/export-instagram-facebook-comments-with-ai/

# How to export Instagram and Facebook comments with AI

Paste a post link into your AI chat and ask for a CSV. In ChatGPT, you can use 40bytes’ official plugin, [Comment Export Tool By 40Bytes](https://40bytes.com/blog/export-instagram-facebook-comments-with-ai/#chatgpt). With the plugin or the 40bytes MCP server connected, your assistant finds the post, starts the export, and gives you a download link when it’s ready.

By the 40bytes team November 26, 2026

## 1\. Connect your Facebook Page or Instagram account

1.  Sign in to [40bytes Comment Export Tool](https://export.40bytes.com/) with Facebook and select **Connect pages**.
2.  Grant access to the Facebook Page you manage. For Instagram, connect a business or creator account linked to that Page.
3.  In ChatGPT, you can connect the [40bytes plugin](https://40bytes.com/blog/export-instagram-facebook-comments-with-ai/#chatgpt). For a manual connection, add the 40bytes server to your AI client using the settings below. MCP stands for Model Context Protocol, the standard your assistant uses to call 40bytes tools.

| Setting | Value |
| --- | --- |
| Server name | `comment-export-mcp-by-40bytes` |
| Server URL | `https://export.40bytes.com/api/v1/mcp` |
| Transport | Streamable HTTP |
| Authentication | OAuth with browser sign-in |

## 2\. Set up your AI client

When your browser opens, sign in to the same 40bytes account and approve access to find posts, start exports, and check their status.

### OpenCode

    opencode mcp add comment-export-mcp-by-40bytes --url https://export.40bytes.com/api/v1/mcp

If prompted to authenticate, run `opencode mcp auth comment-export-mcp-by-40bytes`. [OpenCode MCP guide](https://opencode.ai/docs/mcp-servers/)

### Claude Code

    claude mcp add --transport http comment-export-mcp-by-40bytes https://export.40bytes.com/api/v1/mcp

Open Claude Code, enter `/mcp`, and select the 40bytes server to sign in. [Claude Code MCP guide](https://code.claude.com/docs/en/mcp)

### Codex

    codex mcp add comment-export-mcp-by-40bytes --url https://export.40bytes.com/api/v1/mcp

If the browser doesn’t open, run `codex mcp login comment-export-mcp-by-40bytes`. [Codex MCP guide](https://developers.openai.com/codex/mcp)

### ChatGPT

Open [Plugins in ChatGPT](https://chatgpt.com/plugins) and look for **Comment Export Tool By 40Bytes**. If it’s available in your workspace, connect it to the same 40bytes account you used to authorize your Facebook Pages or Instagram accounts. Select the plugin in your chat and ask it to export comments from your post.

To connect the MCP server manually in ChatGPT, follow these steps.

1.  In ChatGPT on the web, open **Plugins**, select **+**, then choose **Add custom MCP server**.
2.  Enter the server name and URL above. Choose **OAuth** and use Dynamic Client Registration if asked. Create the plugin with the post lookup, export, and status actions enabled.
3.  Install the plugin, select it in a chat with an **@mention**, and approve the export if ChatGPT asks.

Custom MCP write actions require a Business, Enterprise, or Edu workspace with the appropriate permissions. [ChatGPT custom MCP guide](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt)

## 3\. Ask your AI to export comments

Copy a prompt and replace the bracketed text with your post details.

| What you have | What to ask your AI |
| --- | --- |
| Facebook post link | “Use 40bytes to export the comments from \[Facebook post URL\] and give me the CSV download link.” |
| Instagram post or reel link | “Use 40bytes to export the comments from \[Instagram URL\] posted by \[@username\]. Send me the CSV download link.” |
| Facebook caption and date | “Find the post on \[Page name\] with \[caption phrase\] published around \[date\] in \[timezone\]. Ask me to choose if there’s more than one match, then export its comments.” |

Each export creates one CSV with the comments and replies available through Meta. Open **Download CSV** in a browser where you’re signed in to 40bytes.

## How the AI runs the export

1.  **Find the post.** Use `find_facebook_post_by_url` for a Facebook link. If the link fails or the user provides a caption, use `search_facebook_posts` with the Page and a date range of up to six calendar days. For Instagram, ask who posted it if the username is missing, resolve the account with `list_connected_accounts`, and pass its ID to `find_instagram_post_by_url`.
2.  **Queue the CSV.** Call `create_comment_export` with the returned post ID, the platform, and a request UUID. Include the account ID for Instagram. Reuse the UUID if retrying the same export request.
3.  **Check progress.** Use the export ID with `get_export_status` until the job finishes. On completion, report the comment count from `processedComments` and use `downloadUrl` for the **Download CSV** link.

If an account is missing, reconnect it in the 40bytes dashboard. If your AI can find the post but can’t start an export, check that the connection has `exports:write` access. [40bytes MCP documentation](https://40bytes.com/docs/)

## What customers say

-   5 out of 5 stars
    
    > Being able to ask ChatGPT to start a comment export through MCP is my favorite part. It fits right into how I already work.
    
    **Emily T.**
    
-   5 out of 5 stars
    
    > It’s helpful that I can use the dashboard or the MCP tools, depending on what I’m doing that day.
    
    **Camille D.**
    

[Read all Comment Export Tool reviews](https://40bytes.com/products/comment-export-tool/#reviews)
