Use Oatey brand #95 Tinning Flux. It is Darn good stuff! Use it with a quality solder such as Canfield lead-free.
The advantage to using #95 is that it contains tiny ground up bits of solder so that once you brush it on and apply heat, the solder bits melt and adhere to the surface, tinning the copper which allows the fittings to be sweated much easier. The flux itself creates and oxygen free environment around the area you are soldering. Of course, make sure that your pipes and fittings are absolutely clean, grease-free and are dry! That is even more important than using the #95 flux, and it can't be stressed enough.!
There is nothing more frustrating than trying to sweat wet copper!
Wally