Share Your Work

mrcruz
HubSpot Employee
HubSpot Employee

Using HubSpot as a 'Central Hub' for approving, editing and sending social posts

Hey Friends!

 

It's your pal, back at it with another fresh drop of knowledge for you. I am assuming this concept has been written about elsewhere, and probably better, but I had a few minutes to mock up a concept for a colleague's client, and it seemed worth sharing.

 

What does this solve for?
So let's say that you want to, via API, send HubSpot a bunch of draft social messages so that the various teams that maintain those channels can get a 'template' of sorts, that could then be edited and altered in such a way to better cater to the audience, and then sent to those channels.

 

While the 'new' API docs have all the Social endpoints in the 'deprecated' api calls state, it appears the V1 endpoint is still supported for this:

 

Main Documentation: https://legacydocs.hubspot.com/docs/methods/social_media/create_broadcast 

 

Key takeaways: Auth via oAuth or Private Apps use "channelGuid": {guid} to specify which social media channel in the account the message is sent to 

(You can get the channelGuid's via this call): https://legacydocs.hubspot.com/docs/methods/social_media/get_channels

 

Within one portal:

You will differentiate the posts only by the channelGuid

Within multiple portals:

You will need to make a different Private App/oAuth connection per portal


Body example:

"channelGuid": "CHANNELGUID_HERE", 

"status": "DRAFT", 

"content" : { 

   "body": "I will be saved as a draft.",

   "photoUrl": "http://cdn2.hubspot.net/hubfs/53/sprocket_web-2.png

   } 

}

 

 

mrcruz_0-1657822110742.png
I hope this helps anyone thinking of doing something similar!

Have a great day!

 

1 Réponse
Jaycee_Lewis
Gestionnaire de communauté
Gestionnaire de communauté

Using HubSpot as a 'Central Hub' for approving, editing and sending social posts

That's awesome! Thank you for sharing, @mrcruz 🙌

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot