Failed to integrate SharePoint with Graph api in react spfx

lee sharepoint 40 Reputation points
2024-05-14T23:53:24.5066667+00:00

I am going to use graph api in spfx, Could anyone help me auth the sharepoint files with graph api in spfx? I was using Azure ad app only, and the result return 403 error.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,726 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 32,241 Reputation points Microsoft Vendor
    2024-05-15T08:12:11.19+00:00

    Hi @lee sharepoint,

    You can follow below Microsoft official documentations to use Microsoft Graph in react based SharePoint framework (SPFx) web parts:

    1. Use the MSGraphClient to connect to Microsoft Graph
    2. Consume the Microsoft Graph in the SharePoint Framework

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful