SP.Social.SocialAttachment constructor (sp.userprofiles)

Initializes a new instance of a SocialAttachment object.

Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.Social.SocialAttachment()

Remarks

To create a video or document attachment for a microblog post, use the SocialFeedManager.GetPreview method, which returns a provisioned attachment object. See How to: Embed images, videos, and documents in posts in SharePoint Server 2013.

See also

Other resources

SocialAttachment

Work with social feeds in SharePoint 2013