SP.Social.SocialPost object (sp.userprofiles)

Represents a microblog post.

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

var object = new SP.Social.SocialPost()

Members

The SocialPost object has the following members.

Constructor

The SocialPost object has the following constructor.

Constructor

Description

SocialPost

Initializes a new instance of a SocialPost object.

Methods

The SocialPost object has the following methods.

Method

Description

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

writeToXml

This member is reserved for internal use and is not intended to be used directly from your code.

Properties

The SocialPost object has the following properties.

Property

Description

attachment

Gets an image, video, or document attachment associated with the post.

attributes

Gets the attributes that apply to the post.

authorIndex

Gets the index of the post's author within the parent thread's actors.

createdTime

Gets the creation time of the post.

id

Gets the post's unique identifier.

likerInfo

Gets an object that contains information about the likers of the post.

modifiedTime

Gets the most recent modification time of the post.

overlays

Gets an array of objects that associates placeholder substrings in the post text with URIs and other data.

postType

Gets the post type.

preferredImageUri

Gets the URI of the preferred image for the post.

source

Gets the source of the post.

text

Gets the display text of the post.

typeId

This member is reserved for internal use and is not intended to be used directly from your code.

See also

Other resources

SP.Social namespace

Work with social feeds in SharePoint 2013

How to: Create and delete posts and retrieve the social feed by using the JavaScript object model in SharePoint 2013