Message: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration. Client app ID: XXXXXX(Appppa). Resource value from request: https://api.businesscentral.dynamics.com/. Resource app ID: xxxxxxx. List of valid resources from app registration: 00000007-0000-0000-c000-000000000000, 00000003-0000-0000-c000-000000000000.
00000007-0000-0000-c000-000000000000 – Dataverse
Microsoft Graph 00000003-0000-0000-c000-000000000000
Solution
Double check the API Permissions you granted were correct Connecting to Dynamics 365 Business Central using an OAuth Token – eOne Solutions