Which, I'm guessing, I allowed Messenger to have access to at some point.
Other than that, it's inference from GPS/location data, which Meta, as far as I know, didn't deny doing.
I exclusively used Facebook for family (years ago before deleting it) and received recommendations of otherwise socially-unconnected roommates who habitually accessed FB through house wifi.
E.g. for a dating situation: new WhatsApp contact, growing frequency of texts, growing frequency of WhatsApp calls, culminating in a night where both phones were connected to the same SSID / locatable in one geo-location throughout the whole night, without their users checking them.
When that happens it'd be time to show them ads with the text "Your new love interest is highly interested in these products"...
It'd also be "amusing" to big-data the whole thing and get the computer to spit out the answer to the question "Where is this relationship going?"
On the first page after signing up, it wanted me to "Add some Friends", and suggested a bunch of people I knew. Including my cousin with a different last name, and who lived several states away.
I've always been fairly privacy conscious, always using an adblocker, but that was downright creepy.
I told him "Don't worry John, they already have it. You're in my contacts list." and the realization that hit him was almost physical.
I remember FB recommending me a contact, I thought "Why does that distinctive name sound familar?". I looked through my e-mails and I had sent a few emails back and forth with the person because of an eBay transaction.
I know I never told FB to scrape my email account, but I'm guessing this person did. And it's certainly not even the address book, but the email addresses from people's inboxes (and why not the names from the "From" field as well. If I was tasked with this I'd even suggest scraping any signature fields).
Hey, at least it bought Zuck a $900K watch.