Periodic solutions for a fractional asymptotically linear problem