The social media giants have been warned that new laws could be on the way to stop them from being a platform for election fraud.