register facebook typescript