Meta has confirmed that it intends to stop making news available to Facebook and Instagram users in Canada ahead of a pending federal law that would force the company to pay to publish news content.

The company announced the changes to Instagram and Facebook on Thursday after the Senate passed the bill, paving the way for the Online News Act to become law by royal assent.

Meta, along with tech giant Google, has opposed the proposed law and asked the government for compromises without success.

The company earlier tested blocking news content for a small pool of users.

Meta said the changes will not otherwise affect its products and services in Canada.

“We want to assure the millions of Canadians on our platforms that they will always be able to connect with friends and family, grow their businesses and support their local communities,” the company.

Meta said it will also continue fact-checking on its platforms in Canada.