We don't allow electronics of any kind during meals - for any of us. I have had to let my sons' friends know this at times as well. My youngest son has one friend that wanted to play with his Nintendo during dinner, and I had to firmly remind him several times before we started eating that he needed to put his game away. My oldest son's friends have been around long enough to know our rules, and they don't mind complying.
As for all of the other texting, my oldest son just went through this with one of his friends. They're 14, and my son's friend had a new girlfriend that he was texting all the time. He came over to spend the night a couple of weeks ago, and barely spoke to my son. He was busy texting his girlfriend the whole time (except when we were eating since he knew phones weren't allowed then). When he left, my son said he didn't think he would be seeing his friend again any time soon because he didn't want to spend his time watching him text his girlfriend.
Today he went over to that friend's house. He asked why my son hasn't been around, and my son told him honestly. The friend apologized, and didn't text at all the whole time they were together. They had a great day!
Maybe if your daughter talks to her friend about it things will change. Then again, maybe they won't, but at least your daughter would have given it a shot. I'm sorry she is even in this position. Her friend should know better.