Prove that every ideal of a Boolean algebra $\displaystyle B$ is principal iff $\displaystyle B$ is finite.

I cannot seem to prove either direction, here. I have photographed and uploaded the chapter text, which can be downloaded in pdf format here. The exercise in question is #10 from section 5.

Any help would be much appreciated!