In fact, information if the user is a fan of the page or does not exist in the signed request. Since you need to decode the signed request first, as it is here:
$signed_request = $_REQUEST["signed_request"]; list($encoded_sig, $payload) = explode('.', $signed_request, 2); $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
And after this access page I liked the variable:
$pageLiked = $data['page']['liked'];
Now FB is on the path to obsolete FBML, so don't consider <fb:visible-to-connection> as something that works for a long base.
source share