I don't have the code here at work but that's where I adapted my lighting system, from which I took just one or two things for my Jam game.
In y memories adapting that code for sfml 2 is really easy.
Concerning if it is the best way to do it, I don't know. You can manage nice number of lights before the fps drops, but some guys around here use shaders and you can probably have more lights like that.