Controlling the wetting and spreading of microdroplets is key to technologies such as microfluidics, ink-jet printing, and surface coating. Contact angle goniometry is commonly used to characterize surface wetting by droplets, but the technique is ill-suited for sub-millimetric droplets. Here, we attach a micrometric-sized droplet to an Atomic Force Microscope (AFM) cantilever to directly quantify contact-line friction on different surfaces (superhydrophobic and underwater superoleophobic) with sub-nanonewton force resolutions. We demonstrate the versatility of our approach by performing friction measurements using different liquids (water and oil droplets) and under different ambient environments (in air and under water). Finally, we show that underwater superoleophobic surfaces can be qualitatively different from superhydrophobic surfaces: contact-line friction is highly sensitive to contact-line speeds for the former but not for the latter surface.