• Requests to Facebook (PageView, ViewCategory, AddToCart, Search, Purchase) are currently triggered during visitor interactions rather than through Action Scheduler, for example:

    [2025-09-22 12:22:27] FB_API | Method=POST | Status=200 | Caller=plugins/facebook-for-woocommerce/includes/Framework/Api/Base.php:114 | Endpoint=207574833124224/events | Event=PageView | Chain=wp_safe_remote_request→do_remote_request→perform_request | Env=FRONTEND | Time=189.57ms

    Because these calls run on most frontend requests, they add roughly 0.2 seconds to page load time. If Facebook’s servers are slow to respond or unavailable, this delay could increase significantly and potentially prevent pages from loading.

    Is there a built-in option, or a best-practice approach, to route these event requests through Action Scheduler (or another asynchronous process) so they don’t block visitor requests?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @cybercr33p,
    could you share details about your setup, version of plugins (woocommerce and facebook-for-woocommerce) and wordpress.

    >they add roughly 0.2 seconds to page load time
    Could you share how you measured this?

    If you used a profiler, could you share the entire profile?

    Thread Starter Christos Chatzaras

    (@cybercr33p)

    WordPress: 6.8.2
    WooCommerce: 10.1.2
    Facebook for WooCommerce: 3.5.7

    You can download the mu-plugin used to log these requests directly from:

    https://dpaste.com/6ZVTRD5DB

    Save it in wp-content/mu-plugins/ so it loads automatically.

    After that, you can view the logs in wp-content/facebook-api-requests.log

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Option to Send Facebook Event Requests via Action Scheduler Instead of Blocking’ is closed to new replies.