Utils and fixes for facebook login