got the api working for facebook login