Your toggle function only displays text in the chat frame - did you check to see if it appeared ?
Lua Code:
function MyAddonOptionsPanel_Toggle()
-- Add code to open or close the options panel here
print("Toggle options panel")
end
If that text appeared then it is working, you just need to add your code to manage the opening and closing of the panel.