I haven't managed to find this anywhere in any of the Social Customer Service guides or general Salesforce documentation, but is it possible to send a Social Post to Facebook via Apex? All documentation says to use the Quick Action, which works perfectly, but the UI is clunky and we are building a custom UI for agents to interact with clients.
I am able to create a physical SocialPost record via Apex (and setting all fields that are set via the QuickAction), but the message is never physically sent to Facebook (in this instance, a private message). I've looked through the Social Studio and Chatter/Connect APIs to see if there's something in there, but no luck.
I'm Apex is as simple as:
SocialPost newPost = new SocialPost();
newPost.ParentId = myCase.Id;
newPost.OutboundSocialAccountId = mySocialAccount.Id;
newPost.IsOutbound = true;
newPost.Name = 'My outbound message';
newPost.MessageType = 'Private';
newPost.ReplyToId = myPreviousMessage.Id;
newPost.Content = 'Hello';
insert newPost;
Post is created and visible, but never physically sent to Salesforce...