some changes for facebook provider, and exception