Facebook Marketplace Inbox CLI (facebook/marketplace-inbox.js)

OpenCLI · clis/facebook/marketplace-inbox.js · javascript · Apache-2.0
cli, integration, email, auth, tag:marketplace, tag:read-only

CLI command that lists recent Facebook Marketplace buyer and seller conversations using cookie-based auth. Reuse for read-only Marketplace inbox retrieval with limit validation.

// Source: https://github.com/jackwener/OpenCLI | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { cli, Strategy } from '@jackwener/opencli/registry';
import { ArgumentError, AuthRequiredError, CommandExecutionError, EmptyResultError } from '@jackwener/opencli/errors';

function normalizeLimit(value) {
  const limit = Number(value ?? 20);
  if (!Number.isInteger(limit) || limit <= 0) {
    throw new ArgumentError('facebook marketplace-inbox --limit must be a positive integer');
  }
  return Math.min(limit, 100);
}

cli({
  site: 'facebook',
  name: 'marketplace-inbox',
    access: 'read',
  description: 'List recent Facebook Marketplace buyer/seller conversations',
  domain:

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key