Use Access token to save comment on SharePoint news

Copper Contributor

I want to use access token from Graph API into SharePoint REST API to save comment on SharePoint News

I have tried to get the access token using Azure Active Directory Sign In then after I have used that token in SharePoint REST API. But it throws an error with Status Code 401: Unauthorized.

Can anyone please let me know that can we use graph API access token in SharePoint REST API?
If yes then how can we use and if not then any alternative way?

 

Thanks

0 Replies