1. I ate at MacDonald's yesterday.

2. I ate in MacDonald's yesterday.
3. I ate MacDonald's yesterday.
[Which sentence is grammatical?]

#1 is the best.

#2 is okay if you went in and ate -- that is, if you didn't go through the drive-thru!

#3 is incorrect.