The swing type roasting machine uses a flat rotating stirring function, which is heated by a gas and equipped with a temperature device. The furnace has high productivity, no broken rate of baked food, uniform color, no pollution, and is an ideal processing equipment for granular food such as roasted red peanuts, Japanese beans, coated beans, flavored peanuts and pistachios.