loss and friendships

My friend and I were both pregnant just a few weeks apart. I lost mine and hers has gone on. After the loss we found out that it was a girl. My friend and her husband and their family just started posting all over social media about how they are having a girl. I'm really hurt that my friend let me find out via social media. Not sure what to do or say. If the tables were turned I never would have let her find out like that. I feel stupid. Like, I thought we were much closer than we actually are.