Nous avons été longtemps amis.

English Translation

We’ve been friends for a long time.

How about “Nous étions longtemps amis”?

That sounds to me like you are no longer friends.