SP.Social.SocialFeedManager.createPost Method (sp.userprofiles)
Creates a microblog post or reply.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Social.SocialFeedManager.createPost(targetId, creationData)
Parameters
targetId
String
null for a root post, the ID of a post to reply to, or the URL of a site feed.creationData
SP.Social.SocialPostCreationData
The new post's content and related information.
Return value
SP.Social.SocialThread
A digest of the new or modified thread.
Remarks
The value of the targetId parameter can be one of the following:
null to publish a root post to the current user's feed.
The thread ID of a post to reply to.
The URL of a site feed to post to (for example: http://<siteURL>/newsfeed.aspx).