function to prepare fb request