An extrinsic rigidity theorem for minimal immersions from $S^2$ into $S^n$