PHP code example of berno / pff2-fb-conversion-api
1. Go to this page and download the library: Download berno/pff2-fb-conversion-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
berno / pff2-fb-conversion-api example snippets
public function pageViewTrigger() {
$this->resetViews();
/** @var Pff2FbConversionApi $fb_conv_api */
$fb_conv_api = ModuleManager::loadModule('pff2-fb-conversion-api');
$fb_conv_api->sendPageViewEvent();
}