If the problem is based on an emotional shock I would suggest her to discuss with a psychologist, because solving and accepting her past and the opposite sex maybe she would start to see the world differently. In this case I really understand the homosexual issue like a disease, like a chronic one that was not treated properly in time. Even if my friend would talk to a psychologist, and even if she would take specialized treatment I don't think this is a secure solution.
Homosexual problem is a subject that even doctors admit that is not so well known and even a long term treatment could fail. I could suggest my friend to go to the doctor, but the treatment might be useful only if she "considers herself a pervert and want to get rid of homosexual tendencies".(Kukurekin, Domestic psychiatry about homosexualism).
If she enters this first category, the environment is very important. The family and friends should encourage and support her .She must not feel rejected even if she, herself admits that has a problem. If she starts a treatment, this will not end at the hospital. During and after it she will be a vulnerable person and she must be sustained by everyone.