Flattery for an object; blarney; humbug. (Irish, film, Anglo-Saxon, flæm, flight.)
“They told me what a fine thing it was to be an Englishman, and about liberty and property ... I find it was a flam.” —Godwin: Caleb Williams. vol.ii. chap. v. p. 57.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Flam from Fact Monster: