To play a prank. To trick someone into something else. To fool someone.
James invited me to the party Friday, but when I got to the place he told me, no one was there. On Monday, people at school were talking about how awesome it was Friday night. I think there's been some tomfoolery going on here.