Are you actually suggesting that a woman should hide her pregnancy from her friends and family?
Yes, she shouldn't have posted about her pregnancy on social media sites.
*Edit to add - There are a lot of other ways to share with friends and family about her pregnancy that aren't social media.