Title: Cannot Call API from App
Last modified: August 21, 2025

---

# Cannot Call API from App

 *  Resolved [Rhys Wynne](https://wordpress.org/support/users/rhyswynne/)
 * (@rhyswynne)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/)
 * Hi There,
 * I’ve been getting the following error on the site for the last 12 hours or so:-
 * _2025/08/21 06:57:39 [error] 72425#72425: *104037 FastCGI sent in stderr: “PHP
   message: PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException:
   Cannot call API for app 221646389321681 on behalf of user 368995009592139 in /
   www/[client\_name]/public/wp-content/plugins/official-facebook-pixel/vendor/facebook/
   php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:174_
 * My host (Kinsta) has been emailing me this. The site is still up and working 
   fine, but yeah would rather not get these emails. What could be causing this 
   issue? The client has a marketing team, but they are based in the US (I’m in 
   the UK), so emailed the client asking if they’ve done something.

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

 *  [retrovertigo](https://wordpress.org/support/users/retrovertigo/)
 * (@retrovertigo)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18607940)
 * Same here.
   This error occurs since 11pm UTC last night.
 * There is nothing on the plugin’s admin UI suggesting that there is an error.
 *     ```wp-block-code
       [Thu Aug 21 08:39:45.400283 2025] [php:error] [pid 328:tid 328] [client [IP redacted]] PHP Fatal error:  Uncaught FacebookAds\\Http\\Exception\\AuthorizationException: Cannot call API for app [app ID] on behalf of user [user ID] in /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:174\nStack trace:\n#0 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Client.php(226): FacebookAds\\Http\\Exception\\RequestException::create(Object(FacebookAds\\Http\\Response))\n#1 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Request.php(286): FacebookAds\\Http\\Client->sendRequest(Object(FacebookAds\\Http\\Request))\n#2 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(152): FacebookAds\\Http\\Request->execute()\n#3 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(205): FacebookAds\\Api->executeRequest(Object(FacebookAds\\Http\\Request))\n#4 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/ApiRequest.php(171): FacebookAds\\Api->call('/61266273553796...', 'POST', Array, Array)\n#5 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php(292): FacebookAds\\ApiRequest->execute()\n#6 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(284): FacebookAds\\Object\\AdsPixel->createEvent(Array, Array)\n#7 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(277): FacebookAds\\Object\\ServerSide\\EventRequest->defaultExecute()\n#8 /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(247): FacebookAds\\Object\\ServerSide\\EventRequest->sendToCAPIEndpoint()\n#9 /var/www/html/wp-content/plugins/official-facebook-pixel/core/class-facebookserversideevent.php(197): FacebookAds\\Object\\ServerSide\\EventRequest->execute()\n#10 /var/www/html/wp-content/plugins/official-facebook-pixel/core/class-facebookwordpressopenbridge.php(162): FacebookPixelPlugin\\Core\\FacebookServerSideEvent::send(Array)\n#11 /var/www/html/wp-content/plugins/official-facebook-pixel/facebook-for-wordpress.php(141): FacebookPixelPlugin\\Core\\FacebookWordpressOpenBridge->handle_open_bridge_req(Array)\n#12 /var/www/html/wp-includes/class-wp-hook.php(324): FacebookPixelPlugin\\FacebookForWordpress->handle_events_request(Object(WP))\n#13 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#14 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#15 /var/www/html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)\n#16 /var/www/html/wp-includes/class-wp.php(818): WP->parse_request('')\n#17 /var/www/html/wp-includes/functions.php(1342): WP->main('')\n#18 /var/www/html/wp-blog-header.php(16): wp()\n#19 /var/www/html/index.php(17): require('/var/www/html/w...')\n#20 {main}\n  thrown in /var/www/html/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php on line 174, referer: [URL redacted]
       ```
   
 * Since it is happening for multiple accounts, is it something we need to do anything,
   or is it on Facbook’s side only?
 * Could there be a message added to the admin UI about this issue?
 *  [tmuka](https://wordpress.org/support/users/tmuka/)
 * (@tmuka)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608279)
 * I started seeing this error across a handful of unrelated domains last night 
   for sites using with this plugin too. I suspect there must be an issue with the
   facebook end of the API, or maybe they deprecated something this plugin uses?
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608351)
 * Hi everyone,
 * We were able to replicate this issue when the W3 Total Cache plugin is active.
 * Please try the following:
    - Go to W3 Total Cache Plugin Settings > Page Cache > Advanced Settings > Never
      cache the following pages
    - In “Never cache the following pages”, add these two entries:
       * `/wp-admin/admin-post.php`
       * `/wp-content/plugins/official-facebook-pixel/core/class-servereventasynctask.
         php`
    - Save Settings
 * If you’re also using Database Cache and Minify – you will have to add these pages
   as exceptions as well.
 * Please let us know if you’re able to resolve the issue or need further assistance.
 * Kind regards,
   Marija
 *  [alexDx](https://wordpress.org/support/users/alexdx/)
 * (@alexdx)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608366)
 * I’m getting the same error, and I do NOT have W3 plugin installed.
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608371)
 * Hi [@alexdx](https://wordpress.org/support/users/alexdx/) ,
 * Please open a new thread on the forum detailing your issue, and share a list 
   of your active plugins. 
   You can copy it from the Tools » Site Health » Info 
   section.
 * Kind regards,
   Marija
 *  [tmuka](https://wordpress.org/support/users/tmuka/)
 * (@tmuka)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608675)
 * I’ll have to open a thread too. These handful of sites use wp-super-cache plugin,
   not W3 Total Cache. They also have WordFence, so if it’s caching or firewall 
   that could be related…
 *  [oscyberdogz](https://wordpress.org/support/users/oscyberdogz/)
 * (@oscyberdogz)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18608686)
 * Same issue here, LiteSpeed + Wordfence opening a new thread.
 *  Thread Starter [Rhys Wynne](https://wordpress.org/support/users/rhyswynne/)
 * (@rhyswynne)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18609545)
 * Hi there, 
   I don’t have W3 Total Cache installed, only Kinsta’s in-built caching.
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [10 months ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18609568)
 * Hi everyone, this issue has been resolved, and you should not be seeing these
   errors any more.
 * Please let us know if you need further assistance.
 * Kind regards,
   Marija
 *  Thread Starter [Rhys Wynne](https://wordpress.org/support/users/rhyswynne/)
 * (@rhyswynne)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18615245)
 * It seems to be working fine now. I’ve not received an error in 4 days.

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

The topic ‘Cannot Call API from App’ is closed to new replies.

 * ![](https://ps.w.org/official-facebook-pixel/assets/icon.svg?rev=3158868)
 * [Meta pixel for WordPress](https://wordpress.org/plugins/official-facebook-pixel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/official-facebook-pixel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/official-facebook-pixel/)
 * [Active Topics](https://wordpress.org/support/plugin/official-facebook-pixel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/official-facebook-pixel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/official-facebook-pixel/reviews/)

 * 10 replies
 * 6 participants
 * Last reply from: [Rhys Wynne](https://wordpress.org/support/users/rhyswynne/)
 * Last activity: [9 months, 3 weeks ago](https://wordpress.org/support/topic/cannot-call-api-from-app/#post-18615245)
 * Status: resolved