Whether your friend posted this on Facebook is irrelevant. Whether he taught in an open or close class is also irrelevant. The point is you took someone else's work, pretended it was your own and tried to monetize it. Why should you profit off someone else's work?
RE: WHAT I RECENTLY LEARNED ABOUT DRINKING