Skip to content

MS Graph people search, show images on Persona Card? #2774

Answered by tabit01
tabit01 asked this question in Q&A
Discussion options

You must be logged in to vote

I found out the LivePersonaCard is loaded as a specific component from the SPFx shared library

  private async _loadSpfxSharedLibrary() {

    if (!this.state.isComponentLoaded) {

        try {

            this.sharedLibrary = await SPComponentLoader.loadComponentById(LIVE_PERSONA_COMPONENT_ID);   

            this.setState({
                isComponentLoaded: true
            });

        } catch (error) {
           Log.error(`[LivePersona_Component]`, error, this.props.serviceScope);
        }
    }        
}

As an alternative to this webpart, I recommend trying the MS Graph toolkit, specifically the mgt-get method.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tabit01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant