We give a characterization of the pairs of weights (v, w), with w in the class A(infinity) of Muckenhoupt, for which the fractional maximal function is a bounded operator from L(p) (X, vdmu) to L(q) (X, wdmu) when 1 < p less-than-or-equal-to q < infinity and X is a space of homogeneous type.