APIFB

Data parser for FB API to work with Keitaro/Binom/Voluum/etc.

Installation

  1. Clone APIFB to to trackers installation folder:

    As a result, APIFB should be available at http://YOUR_TRACKER_IP/apifb/stats.php

  2. Apply 0777 permissions to the apifb folder and its files.

  3. Empty all the logs using the Dashboard: http://YOUR_TRACKER_IP/apifb/stats.php

    Click Clear on each log. Last Cleared date should appear. If not - check file permissions.

  4. Add traffic source to the tracker:

  5. The installation is complete. You may test it now.

Enable User Data collecting (Only for Keitaro locally hosted offers)

Put this code inside the API file for your aff. network:

$kt = "XXXXX" // Your Postback Token (Maintenance > Postback URL); $tmp = [ 'subid' => $_POST['subid'], 'sub_id_8' => $_POST['fbp'], 'sub_id_14' => $_POST['name'], 'sub_id_15' => $_POST['phone'], 'status' => 'lead', ]; file_get_contents("http://127.0.0.1/" . $kt . "/postback?" . http_build_query($tmp));

Make sure to check that the parameters names are correct and correspond to the landing ones. Afterwards, add the code right before the redirect to the Thank you page.