Roles of the Δ(1232), N∗(1520), and N∗(1650) resonances in the γp→π0π0p reaction near threshold is investigated within an effective Lagrangian approach. We have calculated the differential cross sections of the γp→π0π0p reaction by including the contributions from the Δ(1232), N∗(1520), and N∗(1650) intermediate states decaying into π0p via the s-channel nucleon pole and t-channel ρ exchange, and found that the current experimental measurements can be well reproduced. The production of Δ(1232) is mainly from the mechanism of the s-channel nucleon pole, while the N∗(1520) and N∗(1650) are produced from the mechanism of the t-channel ρ exchange. It is expected that more experimental data on the γp→π0π0p reaction can be used to explore the properties of the low-lying excited baryon states and also the scalar f0(500) and f0(980) mesons.