Are you sure it was an "injunction". Generally a court should not forbid you from contacting potential witnesses and confronting them at trial. You are correct, there is a right to confront your accuser in criminal cases and this should extend to examine the witnesses. Were you represented in the criminal matter? If you have already been convicted, I am worried you may have run out of time. Talk to a lawyer as soon as possible in Alabama.
Law is state-specific and laws may vary from state to state. You should consult an attorney in your state for specific legal advice. This answer does not establish an attorney-client relationship.