Different THC compounds have different solubilities. Some can be dissolved in Fat some in Alcohol... Heat is also your enemy, but heat also facilitates the transferance. So THE BEST WAY TO DO THIS IS... Clarified Alcohol butter.
First clarify your butter. This means that you need to boil off all of the water. Butter is generally 80% fat 15% water and 5 % milk solids(the white bits that you see when the butter has melted and broken) To clarify, cook the butter until it froths. This means all the water has evaporated. We DONT WANT WATER IN OUR CONCOCTION. Water doesnt carry thc and will muck up our results.
Remember THC generally comes in resin form which is merely the essential oil of the plant, and assimilates and emulsifies with other oils. So like any oil or fat it is more viscous the warmer it is. So we need a little bit of heat and another fat or oil to blend it with.
Also, Alcohol is constantly used in the kitchen because it breaks down amino acids. These acids contain the other half of our THC solvent.
So you have clarified butter, ground cannabis and some alcohol(something with high taste I suggest bourbon, but vodka and everclear are good too. Get your clarified butter hot, hot enough to extract flavors and oils but not hot enough to cook APPROX 130 degreees farhenheit, add your herbs and a couple tablespoons of alcohol, whisk it furiously and let it steep 24 hours in a warm place. Strain and enjoy. The alcohol will evaporate out leaving the extracted alcohol soluable compunds behind.
.