Is there a cryptographic way (a la mental poker) two people can determine if they both Like each other, without revealing their personal preferences?
The answer to your specific scenario is no, it cannot be done. As mentioned in a comment, if Bob knows his preference (B->A) and learns that the result of the calculation is $0$, then Bob now knows Alice's preference, i.e., A->B is 0.