You will need to create an app for your page, and use the Facebook PHP SDK. This code worked for me:
$app_id,
'secret' => $app_secret,
'cookie' => true
));
$signed_request = $facebook->getSignedRequest();
$like_status = $signed_request["page"]["liked"];
?>
Then include
before your HIDDEN content.
In between your HIDDEN content and content for non-likers.
And lastly close off the content with to close the IF statement: