After being blindsided by Facebook's decision to ban news content, Treasurer Josh Frydenberg said the tech giant's actions were "unnecessary and wrong".