Social media giant Facebook said on Tuesday that it would lift the ban on Australian news pages “in the coming days” after it reached a deal with the government, in which the latter agreed to amend a first-of-its-kind media law, AFP reported. The law, fiercely opposed by the social media giant, was aimed at forcing tech companies like Google and Facebook, to pay for news.

Also read: Mogul vs Mogul: Australia’s tech law pits Murdoch against Zuckerberg

Federal treasurer Josh Frydenberg and Facebook on Tuesday indicated a compromise had been reached over the law.

Also read: Facebook’s news blackout raises misinformation fears in Australia

“As a result of these changes, we can now work to further our investment in public interest journalism, and restore news on Facebook for Australians in the coming days,” said Will Easton, managing director of Facebook Australia, AFP reported. 

In a move last week that sparked global outrage, Facebook not only blocked news for its Australian users, but it also blocked a series of non-news Facebook pages linked to causes ranging from cancer charities to emergency response services.

With the compromise reached over the media law, Google and Facebook, will not be penalised so long as they reach some deals with local media firms to pay for news, according to AFP.

Both the companies objected to the legislation  that made negotiations with media companies mandatory and gave an independent Australian arbiter the right to impose a settlement.

Although Facebook imposed the ban, Google softened its stance and brokered deals worth millions of dollars with a number of media agencies, including Rupert Murdoch’s News Corp and Nine Entertainment.