I have to display all SharePoint Online user's profile information including profile picture on a page in SharePoint Online.
Here some of user has profile picture set in Office 365, while some users have profile picture added in Azure Active Directory.
I am able to use REST API call but it gives me the profile picture of Office 365 users. But I want to pull profile image for SharePoint Online user from Azure Active Directory.
How I can achieve this?
One way is using Graph API by Microsoft, But its usage is confusing me. If any one have used Microsoft Graph API to fetch user's profile image from delve then please share some snippets.