Australia's treasurer Josh Frydenberg and Facebook confirmed they had agreed amendments to proposed legislation to require the social network and Google to pay for Australian news that they feature.
Facebook's co-operation is a major victory in Australian efforts to make the two gateways to the internet pay for the journalism they use.
The company had blocked Australian users from accessing and sharing news last week after the House of Representatives passed the draft law late on Wednesday.
The amended version of the legislation would give digital platforms a month before they are formally designated under the code.
Initially, the Facebook news blockade cut access - at least temporarily - to government pandemic, public health and emergency services, sparking public outrage.
A statement on Tuesday by Campbell Brown, Facebook's vice president for news partnerships, said the deal allows the company to choose which publishers it will support, including small and local ones.
"We're restoring news on Facebook in Australia in the coming days. Going forward, the government has clarified we will retain the ability to decide if news appears on Facebook so that we won't automatically be subject to a forced negotiation," Mr Brown said.
Mr Frydenberg described the agreed amendments as "clarifications" of the government's intent. He said his negotiations with Facebook chief executive Mark Zuckerberg were "difficult".
"There is no doubt that Australia has been a proxy battle for the world," Mr Frydenberg said.
"Facebook and Google have not hidden the fact that they know that the eyes of the world are on Australia and that is why they have sought to get a code here that is workable," he added, referring to the proposed News Media Bargaining Code.
The code was designed to curb the bargaining dominance of Facebook and Google in their negotiations with Australian news providers by requiring a negotiation safety net in the form of an arbitration panel.
The digital giants would not be able to abuse their overwhelming negotiating positions by making take-it-or-leave-it payment offers to news businesses for their journalism. In case of a standoff, the panel would make a binding decision on a winning offer.
Google had also threatened to remove its search functions from Australia because it said the proposed law was unworkable, but that threat has faded.
The tech giant has been signing up Australia's largest media companies in content licensing deals through its News Showcase model.
The platform says it has deals with more than 50 Australian titles through Showcase and over 500 publishers globally using the model launched in October.
Facebook said it will now negotiate deals with Australian publishers under its own model, Facebook News.
"We are satisfied that the Australian government has agreed to a number of changes and guarantees that address our core concerns about allowing commercial deals that recognise the value our platform provides to publishers relative to the value we receive from them," Facebook regional managing director William Easton said.
"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."
Reporting by PA