Same rules for soldering any electronic component, no more heat that you need and as little time as possible exposed to heat. Use a temperature regulated iron set at an appropriate temperature for the work. For something like that, probably 650 to 700F. Use 63/37 or 60/40 tin-lead rosin core solder as it has the lowest melting temperature.
If you're exposing the part to heat for too long, you can speed up soldering by tinning the parts before joining them. Application of a rosin flux prior to soldering speed ups the flow of solder and reduces soldering time.