fix typo, extract fb callback for local, web dev environments