Changed api to load file for FB login