Closed teocomi closed 5 years ago
Sorry for the late response! Which version of the graph API are you using? v1.0 or beta? What kind of account are you using to sign in? Personal, or Work or school account?
Hello, yes it's v1 with a work account. I just tried again and now get more explicative error message:
{ "error": { "code": "ErrorItemNotFound", "message": "The photo wasn't found. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/.", "innerError": { "request-id": "54ec1525-e0b6-47d3-9cb0-5a8018625f37", "date": "2019-06-06T11:22:30" } } }
So guess something has to be enabled by system administrators to be able to get photos...
Hmm, strange. Are you sure the user has a picture set up? I mean, if you go to portal.office.com for example, do you see the image on the top right?
Hey, that was it! I'm pretty sure when I first opened I had also checked with accounts that had a picture set... But anyways, it's working now :) Thanks!
Hello,
I'm unable to get the user photo. I get the following error:
Stack Tracke:
Getting the user profile works fine.
Cheers