toastnz/socialposter

Integration with Social Poster API service

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2023-08-30 22:15 UTC

This package is auto-updated.

Last update: 2024-11-30 02:05:37 UTC


README

Social Poster API service integration.

Get in touch with https://toast.co.nz to get an access token.

Requirements

See composer.json

Installation

composer require toastnz/socialposter

Configuration

Page:
  # This will add a tab to the page in the CMS
  extensions:
    - Toast\SocialPoster\Extensions\SocialPosterExtension

  # Mapping is optional and will be used to pre-populate the fields in the CMS
  social_poster:
    fields:
      Title: Title
      Content: PageSummary
      Image: SummaryImage
      Link: AbsoluteLink
      Schedule: PublishDate

# Required
# Alternatively you can set SOCIAL_POSTER_TOKEN in your .env file
Toast\SocialPoster\Helpers\SocialPoster:
  access_token: YOUR-ACCESS-TOKEN-HERE