SP.Social.SocialDataItem.itemType property (sp.userprofiles)
Gets or sets the link type: a link to a document, site, or website, a user mention, or a tag reference.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Social.SocialDataItem.get_itemType()
SP.Social.SocialDataItem.set_itemType(value)
Return value
SocialDataItemType
The link type: user = 0, document = 1, site = 2, tag = 3, link = 4.
See also
Other resources
How to: Include mentions, tags, and links to sites and documents in posts in SharePoint Server 2013