facebookincubator / Facebook-Pixel-for-Wordpress

A plugin for advertisers who use Wordpress to enable them easily setup the facebook pixel.
GNU General Public License v2.0
37 stars 34 forks source link

Deprecation notice on FB Ads API #18

Open coccoinomane opened 3 years ago

coccoinomane commented 3 years ago

Hello, and thank you for this free plugin. My debug.log is getting spammed by these deprecation notices, any hope fixing it? Thanks, Guido

FacebookAds\Http\Exception\AuthorizationException: (#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v9.0. in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:174
Stack trace:
#0 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Client.php(215): FacebookAds\Http\Exception\RequestException::create(Object(FacebookAds\Http\Response))
#1 /var/www/vhosts/example.com/httpdocs/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 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(165): FacebookAds\Http\Request->execute()
#3 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php(214): FacebookAds\Api->executeRequest(Object(FacebookAds\Http\Request))
#4 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/ApiRequest.php(187): FacebookAds\Api->call('/51204786592020...', 'POST', Array, Array)
#5 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdsPixel.php(180): FacebookAds\ApiRequest->execute()
#6 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(243): FacebookAds\Object\AdsPixel->createEvent(Array, Array)
#7 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(235): FacebookAds\Object\ServerSide\EventRequest->defaultExecute()
#8 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/core/FacebookServerSideEvent.php(98): FacebookAds\Object\ServerSide\EventRequest->execute()
#9 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/core/ServerEventAsyncTask.php(56): FacebookPixelPlugin\Core\FacebookServerSideEvent::send(Array)
#10 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/official-facebook-pixel/vendor/techcrunch/wp-async-task/wp-async-task.php(164): FacebookPixelPlugin\Core\ServerEventAsyncTask->run_action()
#11 /var/www/vhosts/example.com/httpdocs/wp-includes/class-wp-hook.php(287): WP_Async_Task->handle_postback('')
#12 /var/www/vhosts/example.com/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#13 /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#14 /var/www/vhosts/example.com/httpdocs/wp-admin/admin-post.php(51): do_action('admin_post_nopr...')
#15 {main}