Reference

Account

An account is a social media account that Social Poster sends posts to, such as a Facebook page or a LinkedIn profile. In templates you’ll usually reach an account through a Post, using post.getAccount().

{% set account = post.getAccount() %}

{% if account %}
    <span style="color: {{ account.primaryColor }}">{{ account.icon | raw }}</span>
    {{ account.name }} ({{ account.providerName }})
{% endif %}

Properties

autoPost

Whether entries are posted to this account when they’re saved. Editors can change this for each entry in the entry sidebar.

enabled

Whether the account is enabled.

handle

The account’s handle.

icon

The SVG icon markup for the account’s provider, or null when the provider has no icon. Output it with the raw filter. This reads getIcon().

id

The account’s ID.

name

The account’s name, as entered in the control panel.

primaryColor

The brand colour of the account’s provider as a hex value, or null when it has none. This reads getPrimaryColor().

providerName

The name of the account’s provider, such as Facebook. This reads getProviderName().

Methods

getToken()

Returns the OAuth access token stored for this account, or null when the account hasn’t been connected.

isConfigured()

Returns whether the account’s provider settings, such as its client ID and secret, are filled in.

isConnected()

Returns whether the account has been connected to its provider and has a stored token.

Last updated: Nov 13, 2026, 3:09:28 PM