locked
Unable to use access_token aquired from logged in your session id_token to consume graph API to get current user photo RRS feed

  • Question

  • As stated, tried to use access_token acquired from user session id_token. But when trying to use the access token it's giving below error message.

    {
      "error": {
        "code""InvalidAuthenticationToken",
        "message""CompactToken parsing failed with error code: 80049217",
        "innerError": {
          "request-id""<<requestid>>",
          "date""2020-02-11T15:46:32"
        }
      }

    }

    Here is the Graph API URL I tried to pass the access token as a authorization header https://graph.microsoft.com/v1.0/me/photo

    But, the same graph API URL is working when tried from Microsoft graph explorer.

    Appreciate any help.

    Thanks




    Tuesday, February 11, 2020 3:54 PM

All replies

  • We're migrating from MSDN to Microsoft Q&A as our new forums and Graph API has already made the move!  To ease your transition experience, we have created a forum thread on Q&A  where one of our specialized engineers in the subject or the Azure community members can provide the best possible answer to your scenario or question. In future, you can ask and look for the discussion for Graph API related questions here.

    We are actively working to onboard remaining Azure services on Microsoft Q&A. We will make a public announcement once complete. Want to Learn more about new platform: Microsoft Q&A Getting Started  
    Friday, February 14, 2020 3:54 AM
    Owner