Share via

SPSocialFeedManager.CreatePost method

Creates a microblog post or reply.

Namespace:  Microsoft.Office.Server.Social
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)


Public Function CreatePost ( _
    targetId As String, _
    creationData As SPSocialPostCreationData _
) As SPSocialThread
Dim instance As SPSocialFeedManager
Dim targetId As String
Dim creationData As SPSocialPostCreationData
Dim returnValue As SPSocialThread

returnValue = instance.CreatePost(targetId, _
public SPSocialThread CreatePost(
    string targetId,
    SPSocialPostCreationData creationData


  • targetId
    Type: System.String

    An ID that represents the endpoint for the root post, reply post, or site feed post.

Return value

Type: Microsoft.Office.Server.Social.SPSocialThread
A digest of the new or modified thread.


The value of the targetId parameter can be one of the following:

  • a null reference (Nothing in Visual Basic) to publish a root post for the current user.

  • The thread ID of a post to reply to.

  • The URL of a site feed to post to (for example: http://<siteURL>/newsfeed.aspx).

See also


SPSocialFeedManager class

SPSocialFeedManager members

Microsoft.Office.Server.Social namespace