The 37-year-old split from the basketball player in 2010 and quickly divorced him amid reports of his infidelity, reported Contactmusic.
Longoria said her ex-husband's cheating made her think about what she had done to doom the marriage.
"Society usually thinks something is wrong with the woman... Why did he have to have a reason to cheat? It was definitely not about me," she said.
Longoria left Parker after finding hundreds of text messages from the sportsman to another woman on his cellphone.
"I was left wondering, 'Am I not sexy enough? Am I not pretty enough? Am I not smart enough?' In so many of those questions, I immediately stopped and go, 'No, don't start doing that.' Because you can get stuck in that cycle and you can carry on to other things." she added.
Longoria's first marriage was with American actor Tyler Christopher which lasted only two years.