display social feeds on your website
"require" : {
"dachcom-digital/typo3-social-data" : "~1.0.0",
}
In the extension the target folder for storing post assets can be configured.
Make sure that the value holds a valid combined FAL identifier (<storage-uid>:<folder-path>
)
In the backend, prepare sysfolders for storing feeds and the posts.
Create a new record of type "Feed" which is found under the "Social Data" section. Select a folder as post storage and choose if you want to store assets of this feed's posts in the local filesystem. For configuring the feed's connector refer to the readme of the corresponding social data connector package.
To display posts of one or more feeds on your page, create a new record of type "Wall" which is found under the "Social Data" section. Select the feeds you want their posts to be included in the output.
The extension provides a console command social-data:fetch:posts
, which can be used from cli (for testing).
To keep the posts in sync, create a scheduled task of type "Execute console commands", and select the above command.
Use the Plugin "Social Data" and select the desired wall to output the posts in the frontend.
Log messages are logged into var/log/typo3_socialdata_<hash>.log
.
The level of respected messages depends on the application context.
Switch the application context to Development to have more detailed logs.
- create implementations of
ConnectorDefinitionInterface
(puts connector and feed configuration together)ConnectorFeedConfigurationInterface
(model for the connector's feed configuration)- create the flex form file with the configuration fields
- create the connector status form element class (use
AbstractConnectorStatusElement
as a base)
ConnectorInterface
(business logic to fetch the data)- make sure the items returned by
fetchItems
are correctly prepared[ 'id' => // string, must be unique for posts in this feed 'title' => // string 'content' => // string 'datetime' => // DateTime|null 'url' => // string, absolute url to the post, 'posterUrl' => // string, absolute url to the poster image 'mediaUrl' => // string, absolute url to media (video, image or link) ]
- make sure the items returned by
- register the connector implementation:
YourVendor\YourPackage\Connector\YourConnectorDefinition: tags: - name: social_data.connector_definition identifier: your-identifier connector: YourVendor\YourPackage\Connector\YourConnector
Copyright: DACHCOM.DIGITAL For licensing details please visit LICENSE.md