PHP code example of marshmallow / laravel-facebook-webhook
1. Go to this page and download the library: Download marshmallow/laravel-facebook-webhook 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/ */
marshmallow / laravel-facebook-webhook example snippets
use Marshmallow\LaravelFacebookWebhook\Jobs\ProcessFacebookLeadJob as MarshmallowWebhookJob;
class ProcessFacebookDataJob extends MarshmallowWebhookJob
{
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
ray($this->webhookData);
}
}