The "infinite eggs" trick is a glitch rather than an official feature.
Glitches like this can be inconsistent and may not work after a patch, so don't rely on it. If you want to attempt it, look up a current, reputable tutorial rather than trading account details with strangers online, which is never a safe idea.