It's never worth ruining a friendship over a fling :)
My friend and I have liked the same guy. I noticed that he's been into me and texting me and I really like him but he just figured out that my friend liked him and he broke her heart. I wanna date him but idk?
You don't say HOW he "broke her heart".
If all he did was tell her that he wasn't interested in her, I see no problem with you dating him.
Learn this: Just because you like somebody, doesn't give you control over them. If two friends like the same guy, still doesn't give them any say in who he dates.