I have a like button on my website (which is for users to like the fb fan page).
If the user clicks like, I check to see if the even has been fired (event subscribe)
If you use the facebook php API. i've came up with this short function that u can include inside the base_facebook.php file into the class BaseFacebook.
public function userIsFan() {
$sr = $this->getSignedRequest();
if($sr && is_array($sr)){
if(array_key_exists('page', $sr)){
return $sr['page']['liked'] == 1;
}
}
return 0;
}