When you call the /me
endpoint, you need to use delegation permissions, and it shows from your screenshot that you have granted the appropriate delegation permissions, and then when you get the token, you need the user to log in interactively, you need to use auth code flow, please refer to the following documentation for access tokens:
https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.