Fix bug in facebook provider.