Like they do with their breakfasts and children, thousands of Facebook, Twitter and Instagram users flocked to social media on Tuesday to post "voter selfies."

But unlike filtered pet photos, photographing yourself inside the voting booth or filling out your ballot on Election Day may be illegal.

The laws vary by state. In New York, for example, anyone who "keeps any memorandum of anything occurring within the booth; or directly or indirectly, reveals to another the name of any candidate voted for by such voter; or shows his ballot after it is prepared for voting, to any person so as to reveal the contents" is guilty of a misdemeanor.

Read More: Yahoo! News

Photo Credit: Getty Images/John Moore