Facebook and Google announced Monday that they were taking steps to restrict ads from fake news outlets after facing criticism that hoax stories helped swing the presidential election in favor of Donald Trump.