You are viewing an older version of the Social Feeds documentation (1.x). View the latest version (2.x) →
Developers

Source

Whenever you're dealing with an source in your template, you're actually working with a Source object.

Attributes

AttributeDescription
nameThe name of the source.
handleThe handle of the source.
enabledWhether the source is enabled or not.
primaryColorThe primary brand color of the provider connected.
iconThe SVG icon of the source provider connected.
providerNameThe name of the source provider connected.

Methods

MethodDescription
isConfigured()Whether the source provider has been configured.
isConnected()Whether the source provider has been connected and has a token.
getToken()The access token for a source provider.
getPosts(options)Returns a collection of Post objects.