Manage resources with Microsoft Graph - Azure AD B2C

How to manage resources in an Azure AD B2C tenant by calling the Microsoft Graph API and using an application identity to automate the process.