Problem Getting a 4n25 Optocoupler to Work

Hi,

I'm trying to use the Arduino to trigger an 4n25 optocoupler,
I connected:
pin 1: 3.3v Arduino.
pin 2: ground
pin 5: 9v battery.
pin 4: LED.
(component datasheet here: http://www.datasheetdir.com/4N25+Optocouplers)
I expected the LED to light, but it didn't.

Did I make a wiring mistake or is it a more general mistake understanding how this should work?

Thanks,
Eran.

Your connections look correct to me. What are the resistor values? (the colours don't show up very well in the photo). Have you connected the LED the right way round? Does the LED light up if you short pins 4-5 of the 4N25?

Yes, the LED does light up when I short pin4 and 5.
Resistor values are 220 ohm coming in the optocoupler and 560 ohm coming out to the LED.

Looking at the photo again, I don't think the top end of the 220 ohm resistor is actually going into a hole in the breadboard.

Yeah it looks like that because of the photo angle, but it's actually in there.
I just found the problem: The breadboard was faulty.
I moved the whole thing exactly as it was to a different breadboard and now it works smoothly XD.