you can't put everything into an equation. See it as a lesson and an experience, now you know that Facebook can be a trigger, get rid of it at least temporarily .
Don't be mad about your relapse, it s a process, most of us have relapsed a few times before we could make a nice reboot ^^