Say cheese!

The White House said Wednesday it is lifting its longstanding ban on cameras and taking photos on its public tours.

In announcing the new policy, First Lady Michelle Obama posted a video to her Instagram account.

https://instagram.com/p/4l6aKJvZHj/

In the video, she rips a sign that says “no photos or social media allowed.”

The White House said in a statement that the ban has been in place for more than 40 years. Effective immediately, guests can take photos throughout a White House tour and “keep those memories for a lifetime,” the statement said.

But there are still some rules in place.

Phones and compact still cameras with a lens no longer than 3 inches are allowed inside. While photography is allowed, the White House warns it “may not interfere with the enjoyment of other guests on the tour.”

Also, flash photography and livestreaming are not allowed during the tour. The following items are also not permitted — video cameras, action camcorders, cameras with detachable lenses, tablets, tripods and monopods.

And no camera sticks, the White House said.

The ban on no photos during White House tours was put in place after long lines started forming because visitors were stopping often to take pictures, according to the White House Historical Association.