Possible Duplicate:
Seamless way to check if user likes page
I think so many people have been asked this quesion,But still I need a solution to check whether logined user has liked the page or not.I have tried so many solutions but none of theme were working.
I have tried with the following code
function parsePageSignedRequest() {
   if (isset($_REQUEST['signed_request'])) {
   $encoded_sig = null;
   $payload = null;
   list($encoded_sig, $payload) = explode('.', $_REQUEST['signed_request'], 2);
   $sig = base64_decode(strtr($encoded_sig, '-_', '+/'));
   $data = json_decode(base64_decode(strtr($payload, '-_', '+/'), true));
   return $data;
 }
return false;
}
if($signed_request = parsePageSignedRequest()) {
  if($signed_request->page->liked) {
    echo "This content is for Fans only!";
    } else {
    echo "Please click on the Like button to view this tab!";
  }
}
I could not get the user "liked" response. So any can instruct me how what should I do to get the user "liked" response.