A lot of good comments below, and I'll try not to reiterate them...
Your friend needs to know that the rejection was not personal first and foremost, and it probably did her a favor in the long run. Imagine if she got the job, and they put her in a position that she would most likely fail at. Aside from the company itself losing the time spent on her, she herself would most likely be even more embarrassed, thus potentially destroying her confidence.
I think all of the comments here not only pertain to this specific situation, but can be applied to general life experience as well. As someone with a physical disability, I was constantly told when I was growing that I wouldn't be able to do a lot of things. That made me want to try even more, and I eventually succeeded by learning what I did wrong and correcting it. There's no reason why she can't do the same thing!