Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
Head over to developer.facebook.com and create an App
On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App: https://developers.facebook.com/docs/graph-api/webhooks/v2.5
| Serial Keys: | |
| YV54A-2ZW5P-M887Y-UWXNE-QPUXD | |
| VY3R2-0NW0L-H845Q-TDMXT-XQAT0 | |
| VC7JR-A0Z97-08EGZ-M4YNV-XVHD0 | |
| FC1TU-4RGEQ-084EP-2XQQX-ZGHWA | |
| CU1WA-8HGEN-M815Z-HQP5E-QKADF | |
| AY7D0-FTG44-H846Y-2XPGV-P32T8 | |
| If i request you to be my mentor, what will you teach? comment below. |
| <?php | |
| namespace Mauris\Utility; | |
| class NricUtility | |
| { | |
| public static function validate($nric) | |
| { | |
| $nric = strtoupper($nric); | |
| if (strlen($nric) == 9) { | |
| $hash = self::checksum(substr($nric, 0, 8)); |
| <?php | |
| $challenge = $_REQUEST['hub_challenge']; | |
| $verify_token = $_REQUEST['hub_verify_token']; | |
| // Set this Verify Token Value on your Facebook App | |
| if ($verify_token === 'testtoken') { | |
| echo $challenge; | |
| } | |
| $input = json_decode(file_get_contents('php://input'), true); |
THis gist was created in 2016 and I haven't been working with Facebook Leads ever since. As a result, this guide might not be accurate.
Please check @eladnava's updated step-by-step guide for 2020 here: https://eladnava.com/get-facebook-ad-lead-notifications-in-realtime-with-node-js-webhooks/
| <select name="nationality"> | |
| <option value="">-- select one --</option> | |
| <option value="afghan">Afghan</option> | |
| <option value="albanian">Albanian</option> | |
| <option value="algerian">Algerian</option> | |
| <option value="american">American</option> | |
| <option value="andorran">Andorran</option> | |
| <option value="angolan">Angolan</option> | |
| <option value="antiguans">Antiguans</option> | |
| <option value="argentinean">Argentinean</option> |
| <?php | |
| /** | |
| * Thanks for James Kemp / Iconic turning the idea into a plugin | |
| * https://wordpress.org/plugins/shortcode-pagination-for-woocommerce | |
| * | |
| * This code shows pagination for WooCommerce shortcodes when it's embeded on single pages. | |
| * Include into functions.php. | |
| */ | |
| if ( ! is_admin() ) { |
| //Based on http://www.samliew.com/icval/ | |
| function validateNRIC(str) { | |
| if (str.length != 9) | |
| return false; | |
| str = str.toUpperCase(); | |
| var i, | |
| icArray = []; | |
| for(i = 0; i < 9; i++) { |
| <?php | |
| namespace Mauris\Utility; | |
| class NricUtility | |
| { | |
| public static function validate($nric) | |
| { | |
| $nric = strtoupper($nric); | |
| if (strlen($nric) == 9) { | |
| $hash = self::checksum(substr($nric, 0, 8)); |
| <select name="year"> | |
| <option value="">Year</option> | |
| <?php for ($year = date('Y'); $year > date('Y')-100; $year--) { ?> | |
| <option value="<?php echo $year; ?>"><?php echo $year; ?></option> | |
| <?php } ?> | |
| </select> | |
| <select name="month"> | |
| <option value="">Month</option> | |
| <?php for ($month = 1; $month <= 12; $month++) { ?> | |
| <option value="<?php echo strlen($month)==1 ? '0'.$month : $month; ?>"><?php echo strlen($month)==1 ? '0'.$month : $month; ?></option> |