It's your choice; but here's a quick sample that I put together from snippets on Facebook's Javascript API Reference:
Code:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
// the user is logged in and has authenticated your
// app, and response.authResponse supplies
// the user's ID, a valid access token, a signed
// request, and the time the access token
// and signed request each expire
alert('logged in');
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
FB.api('/me/likes', function(response) {
for(node in response.data){
alert(response.data[node].name);
}
});
} else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
alert('logged in; no auth');
} else {
// the user isn't logged in to Facebook.
alert('not logged in');
}
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
You will need an App ID to interact with Facebook's API, so create an app if you need to. You will also need to create a channel file (this is detailed on the reference page that I linked to). Then copy your App ID and channel file location into the code above and it's ready to use.
Once ready, it will check the user's login status with Facebook. If they're logged in and they've authorized your app, you can check their Likes. Instead of alerting them, you'll of course want to compare them to what you're looking for instead.
If the user's not logged in or hasn't authorized your app, you'll need to add some code to handle that. Here's a reference for FB.login; you'll need to ask specifically for the "user_likes" permission.
Try that and post any questions.