Skip to content
40bytes.Open the app
← Back to the blog
Product guide3 min read

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. 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.

1. Connect your Facebook Page or Instagram account

  1. Sign in to 40bytes Comment Export Tool 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. 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.
SettingValue
Server namecomment-export-mcp-by-40bytes
Server URLhttps://export.40bytes.com/api/v1/mcp
TransportStreamable HTTP
AuthenticationOAuth 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

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

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

ChatGPT

Open Plugins in ChatGPT 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

3. Ask your AI to export comments

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

What you haveWhat 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

Contact us