Both mean "small number of friends." Both sentences are grammatically correct. I get the same information from both sentences, but there is a small difference.
"Few friends" emphasizes how small the amount of friends is.
"A few friends" refers to the friends you do have.