In the schematic, the resisters are placed on the switch side because I wanted to make it look simpler and try to make less wiring. But in the real world, attaching those resisters to the MB3 terminal or a separate terminal may be better.
The technique of choosing the right resistor values that always works for me is, using an amp meter in series between the resister and LED diode (inside the opto). The meter will tell you the exact current flowing through the LED diode, and then you choose the right resisters according to what the specs say.