What should you do if your ex-girlfriend is dating your best friend and is telling him the secrets of your past with her?

Request that she stop, otherwise just let it be known that she may be telling lies. It's hard when those we trust share our deepest secrets. Don't retaliate, just deny. Sooner or later she'll either run out of ammo or just stop understanding your feelings.