Add fb_id to user json API, clean up code, add error checking