SP.Social.SocialPost.attachment property (sp.userprofiles)
Gets an image, video, or document attachment associated with the post.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Social.SocialPost.get_attachment()
Return value
SocialAttachment
An image, video, or document attachment associated with the post, if one exists.