It's a fictionalized historical action horror novel by Seth Grahame-Smith, later adapted into a movie. The novel plays with the concept of historical fiction, blending elements of Lincoln's actual life with the fantastical world of vampire hunting.
While the book and movie are entertaining, they are not meant to be taken as factual accounts of Lincoln's life.