CLI Commands

Command line tools for managing the Facebook & Meta Marketing Suite.


Available Commands

Command Description
magmodules:facebook:generate-feed Generate product feed
magmodules:facebook:process-queue Process CAPI event queue
magmodules:facebook:sync-order Sync historical orders
magmodules:facebook:cleanup Clean up old logs and queue data

Generate Feed

Generate the product feed for Facebook Catalog.

bin/magento magmodules:facebook:generate-feed

Options:

Option Description
--store-id=ID Generate for specific store view only

Examples:

# Generate feed for all enabled stores
bin/magento magmodules:facebook:generate-feed

# Generate feed for store view ID 2 only
bin/magento magmodules:facebook:generate-feed --store-id=2

When to use:

  • Initial feed setup
  • After major product data changes
  • When cron is not running
  • To test feed generation

Process Queue

Process pending Conversions API events.

bin/magento magmodules:facebook:process-queue

What it does:

  • Finds all events with status "pending"
  • Sends each event to Facebook Conversions API
  • Updates status to "success" or "failed"

When to use:

  • When cron is delayed
  • To immediately send events
  • After fixing configuration issues
  • To reprocess after token update

Sync Order

Sync historical orders to Facebook for Purchase events.

bin/magento magmodules:facebook:sync-order

Options:

Option Description
--order-id=ID Sync specific order by ID
--from-date=DATE Sync orders from date (YYYY-MM-DD)
--to-date=DATE Sync orders until date (YYYY-MM-DD)

Examples:

# Sync specific order
bin/magento magmodules:facebook:sync-order --order-id=100000123

# Sync orders from last 30 days
bin/magento magmodules:facebook:sync-order --from-date=2024-11-01

# Sync orders in date range
bin/magento magmodules:facebook:sync-order --from-date=2024-11-01 --to-date=2024-11-30

When to use:

  • Initial module setup (sync historical data)
  • After enabling CAPI on existing store
  • To backfill missing Purchase events

Cleanup

Remove old feed logs and processed queue entries.

bin/magento magmodules:facebook:cleanup

What it does:

  • Removes old entries from Data Feed Logs
  • Removes processed events from Processing Queue
  • Keeps recent data for troubleshooting

When to use:

  • Regular maintenance
  • When grids become slow
  • To free up database space

Common Workflows

Initial Setup Testing

# 1. Generate feed and check output
bin/magento magmodules:facebook:generate-feed

# 2. Process any queued events
bin/magento magmodules:facebook:process-queue

After Configuration Change

# Regenerate feed with new settings
bin/magento cache:flush
bin/magento magmodules:facebook:generate-feed

Backfill Historical Data

# Sync last 90 days of orders
bin/magento magmodules:facebook:sync-order --from-date=2024-09-01

Maintenance

# Clean up old data
bin/magento magmodules:facebook:cleanup

Need More Help?

Documentation:

Support:

Created:
Updated:
star star star star star
star star star star star
Alexandru-Manuel Carabus
Magmodules sets the bar for Magento module quality and support—we check their catalog first for client feature requests, and they’re our first choice for licenses.
Google 28 days ago
star star star star star
star star star star star
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google 09 Sep 2025
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google 05 Sep 2025
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google 02 Sep 2025
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025