How to get access token for Graph API in Teams bot-based message extension?
I’m developing a Teams bot-based message extension application using the Teams Toolkit in TypeScript. I need to retrieve all the replies for a message in the current channel. According to the documentation, I need to use the Graph API to get the replies. However, to use the Graph API, I need an access token.
My questions are:
How can I implement OAuth to get the token in a bot-based message extension?Are there any specific permissions or configurations needed in the Azure portal to enable this?Is there an alternative way to get the access token or retrieve the replies without using the Graph API?
I’m developing a Teams bot-based message extension application using the Teams Toolkit in TypeScript. I need to retrieve all the replies for a message in the current channel. According to the documentation, I need to use the Graph API to get the replies. However, to use the Graph API, I need an access token. My questions are:How can I implement OAuth to get the token in a bot-based message extension?Are there any specific permissions or configurations needed in the Azure portal to enable this?Is there an alternative way to get the access token or retrieve the replies without using the Graph API? Read More