The correct sentence is:
"My favorite food is hamburgers."
In English, when we talk about a type of food in a general sense, we usually use the plural form, unless referring to an uncountable food (like “rice” or “pasta”). Here, "hamburgers" refers to the general category or type of food you enjoy, rather than a specific, single hamburger.