Actually, extending the fcgi timeout worked.
For others reading this, in virtualmin:
“Server Configuration” > “Website Options” > “Maximum PHP script run time” > set to 300 seconds.
May want to change it back to 30 after you put in your APP ID & secret.