5 thoughts on “Displaying User Profile Picture in Apps

  1. Pingback: User profile picture in SP hosted app | My SharePoint Learnings

  2. There is no needs to test the size of the profile picture. Just use another default image at the same position as the profile picture. When the profile picture doesn’t load for any reason, the default image will show. Otherwise the profile image will cover the default image. That is whole point why the service return 1 pixel image when there is profile picture.

  3. I’m assuming that userphoto is used for hosted SharePoint and getpersonalphoto for O365, for add-ins? However not sure if it’s a bug but in add-ins but userphoto tries to get photo from https://hostweb-{appid}.sharepoint.com/_layouts/15/userphoto.aspx which doesn’t exist with the {appid} included and throws a 500 error. Thoughts?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s