Family Law Questions? Ask a Family Lawyer Online.
My opinion is that a court will listen to your daughter's wishes but will not approve any order that she stay at a friends house unless both parents agree. This seems to be a case of a child trying to control the situation rather than her parents and that her father is enabling all of this. I can't solve a problem like this since managing a teenager is not one of my specialties but legally you need to make your case for more stability in your child's life. She needs to live in one place and visit the other on a regular basis and not be moving around when she feels like it. I believe most courts would agree with that premise.
So you need to tell your side of the story and make a case for her to live with you but if she is adamant that she wants to live with her father then it is likely the court will approve but not to live at a friend's house.