Let $L_n$ be a line graph with $n$ edges and $F(L_n)$ the facet ideal of its matching complex. In this paper, we provide the irreducible decomposition of $F(L_n)$ and some exact formulas for the projective dimension and the regularity of $F(L_n)$.