We are really surprised Facebook hasn't been hit with before, how do they allow running remote JavaScript execution. This should be easy to detect. Here is the JavaScript that is executed: http://plucketenhe.info/verify.js
Well, it can be tricky, often times the XSS attack is masked quite deeply, but there are known methods. PHP strip_tags will assist, though would need to be beefed up a bit to handle the onclick, onhover, onblur, onfocus, etc events. In this particular case, simply looking for `javascript:` would have done the trick.