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