Revision: 49993
Updated Code
at December 14, 2011 02:13 by jretamal
Updated Code
<?php
$signed_request = $_REQUEST["signed_request"];
list($encoded_sig, $payload) = explode('.', $signed_request, 2);
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
if (empty($data["page"]["liked"])) {
echo "No eres fans!";
} else {
echo "Ya eres fans!";
}
?>
Revision: 49992
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 4, 2011 01:25 by jretamal
Initial Code
<?php
$signed_request = $_REQUEST["signed_request"];
list($encoded_sig, $payload) = explode('.', $signed_request, 2);
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
if (empty($data["page"]["liked"])) {
echo "You are not a fan!";
} else {
echo "Welcome back fan!";
}
?>
Initial URL
Initial Description
Verify if a user is a fan of a page
Initial Title
Fan Page Verify
Initial Tags
php, page, facebook
Initial Language
PHP