It is better to email than use facebook and it is better to personally thank him than use email. But, facebook is not a bad option either.
Unless, he is a super-busy or an irritable guy he will be happy for your thank you message in whatever form you send him.
I like to blog about various topics ranging from education in IITs to social issues in India and US. All opinions and views presented here are my own and not of my employer.