This is a play on words. The word "toasted" refers to having made a speech praising someone but toasted also refers to what happens to bread when it's put in a toaster.
They threw a party for the inventor of the toaster . And he was toasted .