async api and send fb data to server