We complete our earlier study of the "direct" part of the cross section and spin asymmetry for the photoproduction process γN → hX by analysing the "resolved" contribution, for which the photon couples like a hadron through its parton structure. The incident photon and nucleon are longitudinally polarized and one observes a hadron h at high transverse momentum pT . Soft or collinear gluon emissions generate large logarithmic threshold corrections which we resum to nextto-leading logarithmic order. We compare our results with recent spin asymmetry data by the COMPASS collaboration, highlighting the role of the fragmentation functions.