It's more akin to when I gave up on a lot of television than drug addiction. I made a decision that I was assigning too high a priority (and subsequently spending too much time on) something that was delivering low value for my leisure time, and I was missing out on other activities that could deliver more enjoyment and pleasure than Facebook was giving me. My wife changing the password creates a barrier to entry that's high enough that I'll go find something else to do rather than trying to get the password or do the password reset thing.
For instance, for me to watch television today I have ridiculously high standards. If a show gets boring, I drop it. I give a new show at most three episodes, if it hasn't hooked me by then, it's not worth it. With so many other ways to pass the time and only so much time, I'd rather play a well made video game for an hour than spend that same hour watching lackluster television. Or I'd prefer to watch a good movie I just haven't had time to see but that I've heard was well worth watching. Not to mention books, crosswords, etc. There are plenty of great leisure options out there, why waste time you'll never get back on mediocre entertainment?