To maximize the number of different parties, the number of friends in each party should be such that the total number of friends (50) is divided evenly. The best option is to have 25 friends in each party. This way, we get exactly two parties.
Thus, the correct number of friends to invite at a time is \( 25 \).