Publish Social Media Post

Version: 1.2.0
social-media/publish-post
superface

Publish posts on social media such as Instagram, Facebook, or Twitter.

Publish a Post

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

Profile ID
Text
Link
Title
Media attachments
Post ID
Post URL

1. Install

npx @superfaceai/cli install social-media/publish-post

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('social-media/publish-post');

  // Use the profile
  const result = await profile
    .getUseCase('PublishPost')
    .perform({
      profileId: '110658944785122',
      text: 'Text of the Post.'
    });

  return result.unwrap();
}

run();

3. Add providers