You have to have logged on in the past two weeks before the events, have the right number of clicks, and have an empty slot in your party to be able to get event eggs. After that, you don't have to do anything--even be online. The event eggs will just appear in your party.