"Cannot create the API instance because the access token is missing"

This line shows up in WooCommerce → Status → Logs from Meta for WooCommerce (formerly Facebook for WooCommerce), often many times with the same timestamp. It means one thing: the store has no stored connection to Meta right now, so nothing can be sent to your catalog or your pixel.

Error ProductSetSync exception: ... Cannot create the API instance because the access token is missing.

What it means

When you connect the store in Marketing → Facebook, Meta gives the plugin an access token and the plugin saves it in the database. Every request to Meta - product updates, product sets, the catalog feed - is made with that token. The error comes from the plugin's own code: whenever something tries to talk to Meta and the saved token is empty, it stops with exactly this message.

So the error is not the problem itself. It is the plugin telling you the connection is gone.

Why it appears so many times at once

Background tasks keep trying to reach Meta on their normal schedule. The product-set sync, for example, works through your product categories one by one, and each attempt fails the same way - so one missing token becomes one log line per category, all with the same time. It is one problem.

What stops working

How the token goes missing

The token is only ever removed or never saved; common ways that happens:

How to fix it

  1. Open Marketing → Facebook. If it asks you to connect, the store is disconnected - that confirms the cause.
  2. Connect again with a Facebook account that is an admin of your Business Manager, and choose the same catalog and pixel as before.
  3. Give it a few minutes, then check WooCommerce → Status → Logs. New lines with this error should stop. Your catalog updates on the next sync.

If connecting itself fails or loops back to the start, the usual causes are a security plugin blocking the REST API, or a firewall blocking requests to facebook.com from your server.

See every cause on one screen

StallRadar Sync Doctor for Meta for WooCommerce is a free plugin that checks the connection, the catalog and pixel, the product feed file, Meta's background jobs and its logs, and tells you in one line what is blocking the sync and how to fix it. It will be submitted to WordPress.org soon; until then the same build can be downloaded here.

Download the free plugin

Not affiliated with Meta, Facebook or WooCommerce.

Questions

Is my product data lost?

No. Your products are still in WooCommerce, and the catalog on Meta keeps what it had. Nothing is updated until the store is connected again.

Why are there dozens of identical lines with the same time?

One background task tried to reach Meta once per product category and failed the same way each time. It is one problem, not dozens.

Can I just delete the log entries?

You can, but they come back on the next sync attempt until the store is connected again. The log is reporting the problem, not causing it.

Related fixes