Developer Documentation

Additional information for developers

Explanation of site code

A .docksal/etc/php/php.ini file should exist if you want to be able to add sttings such as xdebug.remote_host.
Database folder contains the setup for the database and creates the required tables for the Facebook Graph API calls to be able to save the information to them.
docker folder contains important environment variables for the site. Important to change is the LIVE_URL and DEV_URL depending on where you are running the application. Also setting the Development variable to true or falseso the redirects are to the correct address.
docroot contains the css and images requires as well as the application code. The main files are index.php, monitor.php and manage.php. The rest contain helper functions to save data to the database, get information from the Facebook Graph API and parse data. webhooks.php and webhook_helper.php help to save webhook results by first confirming the webhook is actually from Facebook by checking the sha signature. wenhook_helper.php helps to save data coming in from webhooks.