88 pages. Invited review for SIGMA Special Issue "Loop Quantum Gravity and Cosmology"This review is devoted to the analysis of the mutual consistency of the spin foam and canonical loop quantizations in three and four spacetime dimensions. In the three-dimensional context, where the two approaches are in good agreement, we show how the canonical quantization à la Witten of Riemannian gravity with a positive cosmological constant is related to the Turaev-Viro spin foam model, and how the Ponzano-Regge amplitudes are related to the physical scalar product of Riemannian loop quantum gravity without cosmological constant. In the four-dimensional case, we recall a Lorentz-covariant formulation of loop quantum gravity using projected spin network...