This documentation is archived and is not being maintained.

SP.Social.SocialAttachment constructor (sp.userprofiles)

SharePoint 2013

Initializes a new instance of a SocialAttachment object.

Last modified: August 21, 2013

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

var object = new SP.Social.SocialAttachment()

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.