I think if you add not-friends to your friends list, the Algorithm(tm) perhaps justifiably recommends things from your friends list, and you get junk recommendations, the problem isn't entirely the Algorithm(tm)'s fault.
You feed the Algorithm(tm) garbage and it returns you garbage, and somehow it's all the Algorithm(tm)'s fault.
It's the algorithm's fault for not listening to my "mute this person". I had my feed muted so I didn't see any posts (which is how I wanted it), but now I see random "recommended" content, with no way I can see to opt out. That's not my fault.
FB has an entire team of very well paid people whose entire job is to tweak this algorithm. Presenting relevant content is the whole concept. I suspect where it goes wrong is chasing “engagement” at all costs despite whether it’s emotionally pleasant to the viewer. FB doesn’t care if I actually like the content they present - just whether it keeps me on the site longer. That is, I believe, a poor choice since, at least in my case, it led me to stop using their service.