Rewrite a Facebook ads api process and append batch loader function