It is not advisable to compost fried rice as it has a number of substances that should not be composted, in in particular cooking oil, and possibly egg, meat and spices. Cooking oil, meat and dairy products can bring vermin to your pile and give off a stench as they decompose.