You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Publish Social Media Post

social-media/publish-post@2.0.1
5 providers

Publish a Post

Publish a post on a social media profile with optional image or video attachments.

Input
Profile ID
Text
Link
Title
Media attachments
Video IDs
Result
Post ID
Post URL

1.Choose a provider

2.Use PublishPost with linkedin in your code

Login to see the code example

To show the integration code example you need to log in.

Structure details

Input (object)

profileId
Identifier of a profile to publish to. May be optional with some providers.
text
Text of the post
link
URL to attach to the post
title
Title of the post, if supported by the provider (e.g. Pinterest). Ignored otherwise.
media
Only images and gifs are supported
url
Will be fetched by provider, must be accessible publicly. If both `contents` and `url` fields are provided, a preferable option will be picked by the map.
contents
If both `contents` and `url` fields are provided, a preferable option will be picked by the map.
altText
Alternative text for screen readers
videos
IDs of previously uploaded videos (see `social-media/upload-from-url`) to be attached or published.

Example

Result (object)

postId
Identifier of the published post.
url
Link to the published post.

Example

Implementation details

Provider
linkedin
Use case
PublishPost
Author
@superface
Source
Verified