I highly doubt that they actually managed to do this, at least any time recently.
As another commenter noted, Android alerts you when an app is accessing the microphone in the background, and it would also absolutely destroy the phones battery life more than the FB app currently does. The only way that we have the “Hey Google/Siri” command prompts active all the time is with custom hardware not available to the apps, and certainly not without Android knowing about it.
Maybe they actively listen while the app is open, but even then I think recent Android/iOS would let you know about that.
I actually want this feature, but I want to own the data. There are some OSS projects writing basically identical things but they aren’t too popular (https://github.com/jasonjmcghee/rem seems to be the most popular I could find, but I wasn’t able to get the cross-platform version running on my machine).
I also wrote the dumbest possible clone of this feature in bash, the basic data gathering steps are actually pretty easy to do. I’d build this into a real program but I’ve just been too busy lately with other projects: https://jackson.dev/post/cloning-windows-recall-in-30-lines-of-bash/