The interaction of a focused beam with a metasurface supporting dark modes is investigated. We show computationally and experimentally that the excitation of dark modes is accompanied by characteristic changes in the reflected Fourier spectrum. This spatial frequency filtering capability indicates an avenue for the all-optical, on-chip detection of phase gradients for biological and other imaging techniques.