Skip to content

Uncaught FacebookAds\Http\Exception\AuthorizationException #99

@mgozdis

Description

@mgozdis

The plugin throws the following fatal on thousands of sites:

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

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions