Page 1 of 1

Facebook Conversion API (server 2 server) - setting help

PostPosted: Tue Jun 20, 2023 2:10 pm
by info@.....cz
Hello, i am trying to setup a Facebook Conversion API (server 2 server) tracking.
So i have set up: https://ibb.co/7KpWz8H
I entered Pixel ID. And Conversion API Access Token from here: https://prnt.sc/g_S2FY3vxzNX
But in facebook bussines suite i still see only Browser events from Meta pixel and no Conversion API events: https://prnt.sc/GfT0_s5MgXDf

Is there anything else what should i do?

Re: Facebook Conversion API (server 2 server) - setting help

PostPosted: Fri Jun 23, 2023 12:03 pm
by admin
hello, if the pixel and access code are correct, then this should work all ok and you should see "server events" at FB.

you might want to:
- Store checkout errors in DB = ON (General tab in OPC)
- install our fatal catcher (basic config -> everything in the plugin should be NO )
- check F12 JS console on your site which shows datas sent with server 2 server
- you might want to reinstall FB SDK (it might have some requirements such as minimal php version or similar - this gets logged to OPC Error log ) -> if installation failes, it's possible that you cannot use server2server without updating php version (or installing a missing php extension - see error log)

best regards, stan

Re: Facebook Conversion API (server 2 server) - setting help

PostPosted: Mon Sep 04, 2023 10:08 am
by info@.....cz
Thank you for your help.
I think the problem is in Facebook Conversion API SDK installation, because if i click on the button:
"Reinstall Facebook Conversion API SDK" blank screen is shown and nothing happens...
https://prnt.sc/nsq1aDArAfMJ

You wrote (it might have some requirements such as minimal php version or similar - this gets logged to OPC Error log ) -> if installation failes, it's possible that you cannot use server2server without updating php version (or installing a missing php extension - see error log)

Where do i find the error log?

Re: Facebook Conversion API (server 2 server) - setting help

PostPosted: Tue Oct 24, 2023 12:44 pm
by admin
Hello, the error log is within:
- enable "log checkout errors" in general tab
- visit frontend which should install Facebook SDK at first visit
- see the OPC Error log section (in opc menu at BE at left side)

The system uses modified composer for web installation of 3rd party libraries into /libraries folder. In recent OPC i adjusted the installer to use always "current php version" as directory path, so that one library can be used with php7.4 and another one with php8.1. Generally companies like Stripe or Facebook require to use non-EOL version of PHP and thus it is possible that Facebook SDK requires at least php8.1

OPC's facebook's tracking tries to install:
https://github.com/facebook/facebook-ph ... s/main.zip
into:
/libraries/vendor/facebook-php-business-sdk/'.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'/'

Facebook's SDK page is at https://github.com/facebook/facebook-php-business-sdk

you might want to extract and install it manually, so that composer.json is in:
/libraries/vendor/facebook-php-business-sdk/8.2/facebook-php-business-sdk-main/composer.json
and autoload in:
/libraries/vendor/facebook-php-business-sdk/8.2/facebook-php-business-sdk-main/vendor/autoload.php

best regards, stan