Revision: 52484
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 25, 2011 00:49 by thiagotargino
Initial Code
<?php $signed_request = $_REQUEST["signed_request"]; list($encoded_sig, $payload) = explode('.', $signed_request, 2); $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true); // var_dump($data);die(); $pageLiked = $data['page']['liked']; if($pageLiked){ header('Location: like-on.html'); } else{ header('Location: like-off.html'); } ?>
Initial URL
Initial Description
Redirecionamento Like/Dislike para Fanpages do Facebook.
Initial Title
Like/Dislike Fanpages Facebook
Initial Tags
Initial Language
PHP