The correct sentence that includes a correctly punctuated nonrestrictive phrase is:
"I asked my best friend, who has a great taste in books, for a recommendation."
In this sentence, the nonrestrictive phrase "who has a great taste in books" is correctly set off by commas.