fb api, linked frontend to server