facebook api, front end work