This is true. I found the bill C-18
https://www.parl.ca/DocumentViewer/en/44-1/bill/C-18/royal-assent
From the summary of the bill,
"It establishes a framework through which digital news intermediary operators and news businesses may enter into agreements respecting news content that is made available by digital news intermediaries."
In this example, "digital news intermediaries" refers to websites like Facebook.
Facebook also shared their response to the bill updated August 1st.
https://about.fb.com/news/2023/06/changes-to-news-availability-on-our-platforms-in-canada/
"In order to comply with the Online News Act, we have begun the process of ending news availability in Canada. These changes start today, and will be implemented for all people accessing Facebook and Instagram in Canada over the course of the next few weeks."
It appears Facebook has decided to delete access to news altogether on the site since they would be forced to pay Canadian news companies for use of their stories.