You need to sign in to do that
Don't have an account?
Social post creation with apex code
I have our environment enabled for social media communication and some Social Accounts are integrated for FB, Instagram and Twitter.
Social Studio can communicate with our Sanboxes and create case through a macro.
But now we are willing to send Social Answers to FB, Twitter, etc, though our own component, using apex code. We don't want to use the standard Social Media component for this matter.
We are being able to create SocialPost records, but they are not being sent to Social Studio.
Is it not enough to just create the records? Do we need to explicitly call some kind of ConnectAPI method or something similar to send the data away?
I would very thankful for any hint.
Thanks a lot!
I am able to create the SocialPost record, but it's never sent and not sure how to trigger the send. I've tried looking through the Chatter REST API and ConnectApi namespaces as well to see if there's any way to do it, but I'm a bit stumped at the moment.
So I had a look at the QuickAction Apex methods, and was able to get it working using this. I effectively instantiate my new SocialPost, pass this to the QuickAction and then execute it. Full example here:
What about your apex trigger?