Create and/or Configure Google, FB Apps via API (for user login and subscription)

I’m looking for a solution to automate creation of Google apps (Google developer) to enable user login through user’s Google account.
A public webpage with a Google login would use the app.

It might be possible through Google API but I cannot prove this one.
The same issue would be with Facebook – I found one very old answer (=It is not possible to create an application using Graph API).

Is it possible to programmatically (through an API) modify an existing FB or Google app to add a new website (new domain).

Can you advice about the endpoints and calls, please?