Justin Timberlake isn't the only one who faces a question on whether his ballot selfie is legal.
Secrecy in the voting booth has become a thing of the past for those ready to share their views and daily lives on social media.
But in 17 states the practice is totally illegal, according to elections officials in each state. And in 13 more, the way the laws are constructed might mean voters are doing something wrong when they pose while in their voting booths.
It's legal in Oregon.
In Washington, it's not against the law to take a selfie with your ballot, but a spokesman for Secretary of State Kim Wyman said the office doesn't recommend it. However, you cannot photograph someone else’s voted ballot as that violates their right to vote a secret ballot.
Here's how states handle the question:
Where ballot selfies are legal
Hawaii. A law passed this year allows voters to share a digital image of one's own marked ballot.
Idaho. There's no law banning them, the secretary of state's office said.
Indiana. A federal judge last year barred the state from enforcing a new law prohibiting ballot selfies.
Kentucky. Secretary of State spokesman Bradford Queen says state law does not allow people to record the likeness of a voter, but the law does not say whether voters can record their own likeness. Therefore, the secretary of state's office routinely tells county clerks the law does not prohibit ballot selfies.
Louisiana. Secretary of State Tom Schedler says ballot selfies are allowed in the state, though he's not a fan of them.
Maine. The secretary of state discourages ballot selfies because there's a ban on making unauthorized ballot copies, but there's no law against voters posting photos of their marked ballot.
Michigan. A federal judge on Monday blocked enforcement of a ban on ballot selfies, saying it violates free speech. Lawyers for Secretary of State Ruth Johnson predicted "chaos" at polling places, but the judge on Wednesday denied the state's request to freeze her order while they appeal.
Minnesota. Allowed as long as they're not shown to fellow voters at the polling place or capture another person in the photo.
Montana. Law does not specifically prohibit the use of cameras at polling places, but election administrators and judges have broad authority to limit disruptive activity, according to Emily Dean, spokeswoman for the secretary of state. Sharing photos of absentee ballots is also not banned.
Nebraska. Gov. Pete Ricketts signed a bill in April that allows someone to show their marked ballots to others without risking a $100 fine.
New Hampshire. The 1st Circuit Court of Appeals in Boston last month upheld a decision that a ban was unconstitutional, saying it suppresses a large swath of political speech and there was no evidence to support the state's concerns.
North Dakota. Photos inside polling places are allowed.
Oregon. All voting is done through mail-in ballots, which voters are free to photograph. A state law prohibiting showing a marked ballot to another person was repealed in 2014, according to Molly Woon, a spokeswoman for Secretary of State Jeanne Atkins.
Rhode Island. The Board of Elections adopted new rules in time for November's election that allow for selfie-taking inside polling places. The updated regulations allow voters to take photos as long as they don't show another person's ballot.
Utah. Gov. Gary Herbert signed a bill last year that makes it legal for people to snap pictures of themselves with their ballots. The law makes it a misdemeanor to photograph someone else's ballot.
Vermont. No rules regarding photos in polling places. Clerks are encouraged to adopt specific rules for their polling places to maintain order, according to Jim Condos, a spokesman for the secretary of state.
Virginia. Attorney General Mark Herring issued a formal opinion last month that says ballot selfies are legal in Virginia. Nothing in Virginia law prohibits voters from taking pictures of themselves, fellow voters or their ballot within the polling place, he said.
Washington state. It's not against the law in Washington, but a spokesman for Secretary of State Kim Wyman said the office doesn't recommend it.
Wyoming. No laws against ballot selfies. Law does allow judges of elections to "preserve order at the polls by any necessary and suitable means."
Where ballot selfies are illegal
Alabama. Not allowed because voters have "a right to cast a ballot in secrecy and in private," said a spokesman for Secretary of State John Merrill.
Alaska. A state law bans voters from showing their marked ballots, but Division of Elections Director Josie Bahnke says there is no practical way to enforce it.
Colorado. Ballot selfies or any public dissemination of a marked ballot are considered a misdemeanor. A 2016 bill to repeal the ban failed.
Florida. Photographs are not allowed in polling places or of mailed ballots.
Georgia. Law prevents photos of ballots or the screens of electronic voting machines.
Illinois. Banned by a law that considers "knowingly" marking your ballot so that another person can see it is a felony that carries a prison sentence of one to three years.
Kansas. Secretary of state says a selfie showing a picture of the actual ballot violates state law.
Massachusetts. Taking a photo of a completed ballot in a polling location is banned in Massachusetts. But the state's top election official, Secretary William Galvin, says there's little the state can do to prevent it. Photos of mailed ballots are also banned.
Mississippi. Photos showing how someone marked their ballot after voting are prohibited.
Nevada. Photos inside polling places are not allowed, except by the media. Photos of mailed ballots are also banned.
New Jersey. Law prohibits voters from showing their ballot to others. A pending legislative measure would allow voters to take photos of their own ballots while in the voting booth and share it on social media.
New Mexico. Law prohibits voters from showing their marked paper ballot "to any person in such a way as to reveal its contents."
New York. Photos showing a completed ballot or indicating how a person cast their vote are not allowed.
North Carolina. Photographing or otherwise recording a voted official ballot is not allowed.
South Carolina. Law bars voters from allowing their ballots to be seen. A 2012 state attorney general's opinion says that makes it illegal to reproduce a ballot by cellphone, video camera or iPad.
South Dakota. Secretary of State Shantel Krebs says ballot selfies are not allowed because they can be considered influencing a vote or forcing someone to show proof of voting.
Wisconsin. State law prohibits sharing photos of ballots.
Where ballot selfies' legality mixed, unclear
Arizona. Bars photography within 75 feet of polling places. But the Legislature changed the law that barred showing photos of completed ballots in 2015 to allow posting of early ballots on social media.
Arkansas. Nothing in state law prohibits taking photos while in a polling place as long as it's not disruptive or being used for electioneering purposes, but state law on sharing voter choices is unclear.
California. Gov. Jerry Brown signed a bill last month that repeals a 125-year-old law barring voters from showing people their marked ballots. The change will take effect nearly two months after the presidential election, but legislative analysts have found no occasion of the ban being enforced. The author of the bill, in fact, has been sharing constituents' photos of marked ballots on social media since the law passed.
Delaware. Has a policy against cellphones in voting booths, but elections Commissioner Elaine Manlove said: "I don't know that we can control what happens behind the curtain."
Iowa. Law prohibits the use of cameras, cellphones or other electronic devices in voting booths, so Secretary of State Paul Pate has asked voters not to take selfies with ballots. Photos of absentee ballots are OK.
Maryland. Bans electronic devices in a polling place except for the media. And even media members aren't allowed to photograph a ballot that shows how someone is voting. But photos of mailed ballots are OK.
Missouri. Law prohibits voters from allowing others to see their ballots if the intent is to show how they voted. Secretary of State spokeswoman Stephanie Fleming described ballot selfies as a "gray area" and advises voters to check with local election authorities.
Ohio. Has a longstanding prohibition against voters letting their ballot be seen with the "apparent intention" of letting it be known how they are about to vote. The state elections chief has advised local election boards to consult their own attorneys about how to apply the law. Two Republican lawmakers are sponsoring a bill they say will let voters photograph and make public their marked ballots.
Oklahoma. Officials recommend against it, noting that state law dating back about 40 years suggests it is illegal but outlines no penalties.
Pennsylvania. Law prohibits someone from revealing their ballot "letting it be known how" they're "about to vote." But officials recently released guidance on electronic items in polling places that noted the recent court cases that "found a First Amendment right to take 'ballot selfies.'"
Tennessee. Voters are not allowed to take photos or videos while in polling places. They're only allowed to use electronic devices for informational purposes to assist during voting, according to Adam Ghassemi, a spokesman for Secretary of State Tre Hargett. The state's law doesn't address mail-in ballots.
Texas. Bars photography within 100 feet of polling stations, so selfies are not allowed. Photos of mail-in ballots are OK.
West Virginia. Electronic devices are banned inside voting booths, according to Secretary of State Natalie Tennant. Nothing in the law prohibits photos of mail-in ballots.