They realize, stop using it for a few weeks/months, starts missing it and then come back again. I myself have gone through a few such cycles. This is frustratingly similar to trying to quit an addiction.
I went through several cycles like that. But somehow I stopped using Facebook in 2013. I managed to shift the mindset from "it's a waste of time" to "it's very shameful to use facebook" (and maybe connect it with some really shameful thing in your mind, like, "using Facebook is the same as stealing an old man's money") and that magically works! And it doesn't require any iron will for me.
After that, every single time I think about using Facebook the shame engine in my mind generates enough repel force for me to not do it.
I didn't do that whole process intensionally. I remember seeing some meme like "checking out Facebook in the summer -- all my friends are having fun somewhere and me masturbating lonely in a dark room" and that initiated the mindset change.
To be honest, I know using Facebook is NOT a shame, but now I don't have any reason to use it at all. (There are some stupid website which only allows Facebook login, and I use my gf's account for it -- neither I nor her care about what's on her facebook.)
One trick that worked for me is to gradually subscribe and like boring stuff like cat pictures, scientific journals ect. Anything that doesn't rile you mentally, i.e low mental imprint. Do this very very slowing but consciously after a while your facebook feed would become 'boring' making it easier to quit.
I did this couple of years ago and never went back.
Unless you're looking to wear your non-facebook status as a badge of pride (which many do), I think there's a more constructive way to quit wasting time on FB.
Every time you see a vapid post, unsubscribe from whoever posted it. Eventually you'll have five minutes worth of feed every day and it's only people you're interested in. Suddenly you're not wasting time, you're just getting a couple friend and family updates with your morning coffee.
I would impulsively type the URL and then the small nuisance of having to log in was enough for me to close the tab. After a few days it was enough to stop the compulsion, and now I haven't used Facebook in months.