Social Media Publishing Profiles

Version: 1.0.1
social-media/publishing-profiles
superface

Identify profiles the authenticated user is authorized to publish to (e.g. Facebook page, Instagram business account, or LinkedIn organization page).

Get Profiles for Publishing

Retrieve social media profiles (pages, accounts) the authenticated user is authorized to publish to.

profiles

1. Install

npx @superfaceai/cli install social-media/publishing-profiles

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/publishing-profiles');

  // Use the profile
  const result = await profile
    .getUseCase('GetProfilesForPublishing')
    .perform();

  return result.unwrap();
}

run();

3. Add providers