I've never done heroin before, so my advice is not coming from experience, but from concern. I urge you to please seek medical assistance, if not from a detox centre, then from your gp. You will need monitoring and self medicating with drugs you get from a "friend" really doesn't sound like a good idea if you are genuinely serious about quitting.
Good luck, and I hope to hear more about your progress
RQ