'о' is used before words that begin with consonants, including j-sound (for example: о еде, о единстве, о его etc.)
'об' is used before vowels. Exeptions: об пол, об руку, об стену.
'обо' is used before всё, всю, все, всех, что, мне, всём, всей, всех.