fix fb auth bug and rest format type default