Recently I have bougth "Neem oil" for repeling fruit fly (vinagre fly).

This fly is a very annoying insect, because millions of their fly around the compost bin.
I have red, that Neem oil is usefull for repeling fruit flies.
What is your opinion?
Do you know any other product to use?
If do you use Neem oil, how do you use it?
Thanks.