• Resolved mtg169

    (@mtg169)


    We have thousands of sites regularly throwing the following fatal for some time. None of them appear to be properly connected to Facebook, but the plugin indicates the Business is connected to Facebook and Meta Events Manager. Sending any test events also returns: Error validating access token: The application does not belong to system user's businessor its aggregators's business.

    PHP Fatal error:  Uncaught FacebookAds\Http\Exception\AuthorizationException: Error validating access token: The application does not belong to system user's businessor its aggregators's business in /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:174
    Stack trace:
    #0 /srv/htdocs/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))
    #1 /srv/htdocs/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))
    #2 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(152): FacebookAds\Http\Request->execute()
    #3 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(205): FacebookAds\Api->executeRequest(Object(FacebookAds\Http\Request))
    #4 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/ApiRequest.php(172): FacebookAds\Api->call('/48471383400060...', 'POST', Array, Array)
    #5 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php(292): FacebookAds\ApiRequest->execute()
    #6 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(285): FacebookAds\Object\AdsPixel->createEvent(Array, Array)
    #7 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(277): FacebookAds\Object\ServerSide\EventRequest->defaultExecute()
    #8 /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(247): FacebookAds\Object\ServerSide\EventRequest->sendToCAPIEndpoint()
    #9 /srv/htdocs/wp-content/plugins/official-facebook-pixel/core/class-facebookserversideevent.php(197): FacebookAds\Object\ServerSide\EventRequest->execute()
    #10 /srv/htdocs/wp-content/plugins/official-facebook-pixel/core/class-facebookwordpressopenbridge.php(162): FacebookPixelPlugin\Core\FacebookServerSideEvent::send(Array)
    #11 /srv/htdocs/wp-content/plugins/official-facebook-pixel/facebook-for-wordpress.php(125): FacebookPixelPlugin\Core\FacebookWordpressOpenBridge->handle_open_bridge_req(Array)
    #12 /wordpress/core/6.8.1/wp-includes/class-wp-hook.php(324): FacebookPixelPlugin\FacebookForWordpress->handle_events_request(Object(WP))
    #13 /wordpress/core/6.8.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #14 /wordpress/core/6.8.1/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #15 /wordpress/core/6.8.1/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
    #16 /wordpress/core/6.8.1/wp-includes/class-wp.php(818): WP->parse_request('')
    #17 /wordpress/core/6.8.1/wp-includes/functions.php(1342): WP->main('')
    #18 /wordpress/core/6.8.1/wp-blog-header.php(16): wp()
    #19 /wordpress/core/6.8.1/index.php(17): require('/wordpress/core...')
    #20 {main}
    thrown in /srv/htdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php on line 174

    Can you add better error handling, perhaps remove the invalid connection data, and require users to reconnect so that users are aware the plugin is not working? Currently it only spams their logs with fatals.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Marija

    (@marijastuntcoders)

    Hi, thank you for reaching out!

    Please try the following to fix the error:

    • Disconnect from your page via the plugin
    • Re-install the plugin
    • Temporarily disable all cache plugins and clear the cache
    • Re-connect your page

    Regarding improvements in error handling – please consider opening an issue on the official GitHub repo, so the dev team can take this into consideration for future releases.

    Kind regards,
    Marija

    Plugin Support Marija

    (@marijastuntcoders)

    Hi @mtg169 – just wanted to follow up and check if you are still experiencing this issue?

    If so, please temporarily disable all cache plugins and clear the cache. Then, disconnect from your page via the plugin and re-install/reconnect the plugin.

    Kind regards,
    Marija

    Plugin Support Marija

    (@marijastuntcoders)

    Hi @mtg169 ,

    Since we haven’t heard back from you in a while, we will be marking this issue as resolved. Please feel free to reach out again, should you have any issues with the plugin.

    Kind regards,
    Marija

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

The topic ‘Uncaught FacebookAds\Http\Exception\AuthorizationException’ is closed to new replies.