I have that issue with a very close friend who is also bulimic. I don't have any friends who are BP, though.
It took me forever to admit that not only did I have a problem, but it was the same as hers because I was afraid of being hypocritical. I feel better now that I've told her and my T, though.
It's difficult, but I guess you have to accept that we are all only human and we're gonna make mistakes. Sometimes we can't follow our own advice. Sometimes what we really need is for our friend to tell us the same lines we told them.