I was wondering if I could use one resistor to limit the current for
all 4 channel leds, or if I should use 4 separate resistors(one per
If you used a common resistor to limit current then, when all four LEDs are needed to be driven, the current per LED would reduce to one-quarter of the current when a single LED is being driven. For the sake of adding the extra resistors I wouldn't want to compromise a design given the possible variations in current-transfer-ratio (CTR) between devices within the same package. The data sheet says it can be 50% to 600% (a 12:1 ratio).
Also to consider is the CTR for a typical device as its LED current varies: -
So if you could drive an LED at 8 mA, the typical CTR would mean that the output transistor would conduct with 0.92 x 8 mA i.e. 7.36 mA. At one-quarter drive, the CTR is typically only 0.63 and hence the collector current would be 1.26 mA.
Using a shared resistor could mean a variation in collector current of 1.26 mA to 7.36 mA = 5.8 to 1. Only you can say if your design can cope with this as well as coping with the potential for a 12:1 CTR between respective devices in the same package.
But there is also the consideration that using a shared resistor requires a fairly close match in the forward volt drop per diode. Sometimes this can make the relative range of currents less problematic but sometimes it can make the dispersion worse i.e. one device could disproportionately hog most of the current.