SP.Social.SocialPostCreationData.attachment property (sp.userprofiles)
Gets or sets an image, video, or document attachment for the post.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Social.SocialPostCreationData.get_attachment()
SP.Social.SocialPostCreationData.set_attachment(value)
Return value
Type: SP.Social.SocialAttachment
An image, video, or document attachment for the post.
See also
Other resources
How to: Embed images, videos, and documents in posts in SharePoint Server 2013