Bronx Assemblywoman Naomi Rivera had a secret, ’til she put it up on Facebook.

Not her official page, she says, but on her “unofficial” page — the one she set up under her middle name to detail her steamy personal life.

Including her hot romance with one Tommy Torres, a gym teacher who somehow wound up on her legislative payroll.

As The Post’s Candice Giove reported, state records show Torres worked as a “full-time” community-relations director for Rivera, raking in $1,100 a week, in 2010.

But he was simultaneously listed in Department of Education records as a “full-time” gym teacher at PS 157 in Brooklyn.

Well, that’s the way the Riveras like to do business — by keeping it in the family.

Her father is fellow Assemblyman Jose Rivera, the ex-Bronx Democratic boss (who lost control of the party machine over charges of, what else, nepotism). And her brother is City Councilman Joel Rivera.

Naomi Rivera is clearly taken with her gym-rat hunk. Indeed, she started posting dozens of photos of him on her “other” Facebook page in 2009 — before she hired him and before she’d finalized her divorce.

OK, even lawmakers deserve a private life, and Rivera insists her “personal page” has “nothing to do with my professional career.”

Really? Ask Anthony Weiner about that.

But the real problem here is whether, as it seems, she gave her squeeze a no-show job and sent taxpayers the bill. And that has everything to do with her professional life.