Well, I don't realistically think you can do the OR without some processing of your own. But you could use an fql query to retrieve a list of all the pages someone likes, then check if they match each one.
e.g // this would give you all a users fan page likes
FB.api('/fql?q=' + urlencode("select page_id from page_fan where uid = me()")function(res){
});
Then you would use your own code to validate that your lists are in the returned data. Alternatively you could do something like(make sure to urlencode the query)
fql?q={"isFan":"select page_id from page_fan where uid = me()","myMatches":"select page_id from #isFan where page_id in (page_id1,page_id2)"}
the returned "myMatches" array in the JSON result would then contain only the likes against the ids you specify. So check the length of this result set, against the length of the number of page_ids you had initially.
//pseudo code so prob some syntax errors here
var page_ids = Array(1,2,3);
var valid = true;
var myQuery = ''; // <- your fql query here
FB.api('/fql?q=' + myQuery, function(res)}
var matches = res['myMatches'];
if(matches.length == page_ids.length){
valid = true;
}elseif(matches.contains(single_id)){
//some single id if you only want to check one
valid = true;
}else{
valid = false;
}
});
The above could clearly be optimised, but it's just a starting point for you