An electronic device comprising: a foldable housing comprising: a hinge, a first housing connected to the hinge and comprising a first surface facing a first direction and a second surface facing a second direction opposite the first direction, and a second housing connected to the hinge, comprising a third surface facing a third direction and a fourth surface facing a fourth direction opposite the third direction, the second housing configured to be folded with the first housing using the hinge, wherein the first surface faces the third surface in a fully folded state and the third direction is equal to the first direction in a fully unfolded state; a sensor module; a first display extending from the first surface to the third surface; a second display viewable through at least a portion of the fourth surface; a first camera exposed through at least a portion of the second surface; and a processor, wherein the processor is configured to control the electronic device to: based on a specific application being executed based on a first input, activate the first camera; determine a folding state of the foldable housing using the sensor module; based on the folding state being a first specific state, detect a facial area from first information acquired through the first camera; and based on the facial area being detected, display a first preview image generated based on the first information on the first display, activate the second display, and display a second preview image generated based on the first information on the activated second display. a hinge, a first housing connected to the hinge and comprising a first surface facing a first direction and a second surface facing a second direction opposite the first direction, and a second housing connected to the hinge, comprising a third surface facing a third direction and a fourth surface facing a fourth direction opposite the third direction, the second housing configured to be folded with the first housing using the hinge, wherein the first surface faces the third surface in a fully folded state and the third direction is equal to the first direction in a fully unfolded state; a sensor module; a first display extending from the first surface to the third surface; a second display viewable through at least a portion of the fourth surface; a first camera exposed through at least a portion of the second surface; and a processor, wherein the processor is configured to control the electronic device to: based on a specific application being executed based on a first input, activate the first camera; determine a folding state of the foldable housing using the sensor module; based on the folding state being a first specific state, detect a facial area from first information acquired through the first camera; and based on the facial area being detected, display a first preview image generated based on the first information on the first display, activate the second display, and display a second preview image generated based on the first information on the activated second display. based on a specific application being executed based on a first input, activate the first camera; determine a folding state of the foldable housing using the sensor module; based on the folding state being a first specific state, detect a facial area from first information acquired through the first camera; and based on the facial area being detected, display a first preview image generated based on the first information on the first display, activate the second display, and display a second preview image generated based on the first information on the activated second display.