Bf told me I don't know how to act

My bf took me to his friends house for a gathering last night. Long story short he said I embarrassed him. The main thing that bothered him had to do with this wine situation. After being there for a little while one of his friends, who I know, offered us a glass of wine. At first I turned it down but then changed my mind after tasting my boyfriend's. I got up and saw the friend in the kitchen told him I changed my mind and asked if I could have a glass.

This really upset my bf. He took me outside said I embarrassed him. That I shouldn't have walked up to someone's kitchen since it was my first time in the apartment and I don't know the ppl like that. He says I act loose when I was just trying to be friendly and nice. He was so upset. Said I'm with him and should tell him if I want anything. I understand part of what he was saying but he was so upset. I apologized and told him I am learning things that may bother him and will make an effort to not do those things in the future. It's the only way to respond. I had no intentions of embarrassing him. The way he was talking to me got me so upset. I started crying outside and could not go back in to get my stuff because my eyes were red. He went in made an excuse and then we left.

When he says things like I don't know how to act and I just embarrass him it makes me feel small and upset that he can't see that I'm trying and that saying those things sound harsh. He just caught me so off guard. I feel like there are better ways of telling your girlfriend that you wish she wouldn't do certain things.