Using the _api/SP.UserProfiles.PeopleManager I've gathered the information needed to display my user profile image and presence.
pInfo is a variable that contains the property information needed to put a string like the one below together, but I'm having some syntax issues.
pInfo.Email will give me email@example.com
I need some assistance getting string my src together so it looks like below:
Here I haven't quite grasped how to put it all together:
src="/_layouts/15/userphoto.aspx?size=M&accountname="' + pInfo.Email + '" + "&" + "'+pInfo.PersonalUrl +'" alt="' + pInfo.AccountName + '"