you have to tell her that it happened so fast that you didn't even know what to do. tell her that you can work it out, and that you canalways compromise. if she's really your friend, shell do her best to understand your situation. but if she's not comfortable with it, it's possible that you have to prioritze. who do you care about more, your friendship, or your boyfriend ?
hope i helped :)
good luck