Sounds like she throws a temper tantrum. Best way to handle those is to completely ignore her. Do not pay any attention to her. When she calms down help her get started playing again. Tell her that if she does that again, you're going home or you're sending the other child home. Or if the other parent isn't there, send your daughter to her room so that she can't play anymore with the friend.
After you've established this boundary and if she continues to throw the tantrum, immediately leave. No second chances after the first 2-3 play dates.
Have you devised a way to help the kids share? That would be helpful. My 7 yo grandson still does "turns." He'll play awhile and allow his friend to play or when he wants to play with a friend's toy he'll ask to take turns. He learned to do this around the same age as your daughter.
Also, do you try to distract her with a different toy, one that you know she likes if it's available? Instead of saying no, you can't play, say here, you can play with this one until your friend is ready to share.
Sharing is an important skill to learn. As another mother suggested, special toys that your daughter doesn't want to share should be put away and not be a part of the play date. Same with her friends' special toys.
talk about this with her ahead of time and have an agreement about how you expect her to share the toys that are out. Remind her of the agreement and the consequence if she doesn't co-operate.