Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.SocialPostCapability

If a feed element has this capability, it can interact with a social post on a social network.

Subclass of ConnectApi.FeedElementCapabilities.

Property Name Type Description Available Version
author ConnectApi.SocialAccount Social account that authored the social post. 36.0
content String Content body of the social post. 36.0
deletedBy ConnectApi.UserSummary User who deleted the social post. 38.0
hiddenBy ConnectApi.UserSummary User who hid the social post. 41.0
icon ConnectApi.Icon Icon of the social network. 36.0
id String ID associated with the social post Salesforce record. 36.0
isOutbound Boolean If true, the social post originated from the Salesforce application. 36.0
likedBy String External social account who liked the social post. 40.0
messageType ConnectApi.​SocialPost​MessageType Message type of the social post. Values are:
  • Comment
  • Direct
  • Post
  • PrivateMessage
  • Reply
  • Retweet
  • Tweet
38.0
name String Title or heading of the social post. 36.0
postUrl String External URL to the social post on the social network. 36.0
provider ConnectApi.​SocialNetwork​Provider Social network that this social post belongs to. Values are:
  • Facebook
  • GooglePlus
  • Instagram
  • InstagramBusiness
  • KakaoTalk
  • Kik
  • Line
  • LinkedIn
  • Messenger
  • Other
  • Pinterest
  • QQ
  • Rypple
  • SinaWeibo
  • SMS
  • Snapchat
  • Telegram
  • Twitter
  • VKontakte
  • WeChat
  • WhatsApp
  • YouTube
36.0
recipient ConnectApi.SocialAccount Social account that is the recipient of the social post. 36.0
recipientId String ID of the recipient of the social post. 38.0
reviewScale Double Review scale of the social post. 40.0
reviewScore Double Review score of the social post. 40.0
status ConnectApi.SocialPostStatus Status of the social post. 36.0