This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//enlace el SDK de Facebook, junto con los datos del APP(ID y secret) | |
require_once('src/facebook.php'); | |
$facebook = new Facebook(array( | |
"appId"=>"768300403189668", | |
"secret"=>"b56fd624f2fba94c4eb54fdb2954a2bd" | |
)); | |
//creacion de variables con los datos de la noticia sacados de processwire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ------------------------------ FORM Processing --------------------------------------- | |
$errors = null; | |
$success = false; | |
// helper function to format form errors | |
function showError($e){ | |
return "<p class='error'>$e</p>"; |