Does pressing a "like" button actually redirect the browser to facebook? Or is it trying to do something based on evaluating what the FB javascript does?
The best way to implement something like this would be "if facebook.com" is not in the address bar don't allow any requests to anything with a facebook IP address.
Trying to do something cleverer might be simple for FB to break by changing the like button code.