I am while using wordpress wordpress plugin from http://www.sociable.es/facebook-wordpress-plugin-3-0/ on my small blog, and that i try to determine, the way they hide their download till I click on the "Like" button around the publish.

I attempted:

<fb:fbml version="1.1">
<fb:visible-to-connection>HIDDEN CONTENT</fb:visible-to-connection>
</fb:fbml>

However it did not work.

It is possible to way using the Javascript SDK or other solution?

Thanks!

I believe FBML continues to be done away with. Found this little bit of code:

$request = $_REQUEST["signed_request"];

list($encoded_sig, $load) = explode('.', $request, 2);

$fbData = json_decode(base64_decode(strtr($load, '-_', '+/')), true);

if (!empty($fbData["page"]["liked"]))

{ ?>

You are a fan 

<?php } else { ?>

You are not a fan 

<?php }

//print_r($_REQUEST);

?>

However, the request variables aren't being acquired by my iFrame. Will update when i decipher it.

NB - would only works the very first time the consumer likes the page. you'd need to then save the session variable or something like that.