Social Media Posts

Version: 1.0.1
social-media/posts
superface

Read social media posts posted by a profile (e.g. posts published by a Facebook page, LinkedIn organization, or Twitter profile).

Get Profile's Posts

Retrieve a paginated list of posts from a social media profile.

Profile ID
Before date
After date
Page
Previous page
Next page
Posts

1. Install

npx @superfaceai/cli install social-media/posts

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

  // Use the profile
  const result = await profile
    .getUseCase('GetProfilePosts')
    .perform({
      profileId: '',
      beforeDate: '',
      afterDate: '',
      page: ''
    });

  return result.unwrap();
}

run();

3. Add providers