Ok, so I’ve wired the socket into a ceiling rose as suggested.
I’ve clearly done something wrong. It works fine, but only when I turn the light on. Have I used the switched live terminal? I take it I can have it powered all the time without having to turn the light on!
The picture is the...