An MP has confronted social media bosses over extreme messages received by politicians after she was threatened with being hung.