Selena Gomez has revealed she and Taylor Swift became friends when they dated Nick and Joe Jonas respectively.