While I agree with the sentiment (real love & care must be rooted in reality) I don't think it's possible to "pray away the gay."
It is possible that some past abuse was the catalyst (homosexuality is highly correlated with abuse) & finding ways to heal past trauma can be helpful in whatever sort of relationships a person wishes to pursue. But we get more of what we focus on, the more you focus on the thing you want to get rid of, the more of that thing you are going to get. Focusing on emotional healing & fostering healthy relationships (including healthy boundaries & basic habits), & otherwise treating someone like family (with no focus on sexual preference one way or the other) is really the way forward.