Developers

Social

Creating social feeds in SeeCMS

Social

Twitter

To use the built in twitter method you'll need to setup your own API keys on twitter to access your feed. This method uses the Codebird library: https://github.com/jublonet/codebird-php

in \custom\theme\viewparts.php

$see->addViewPart('%PART%');
$twitterSettings = array( 'name' => '%TWITTERNAME%', 'APIKey' => '%APIKEY%', 'APISecret' => '%APISECRET%', 'accessToken' => '%ACCESSTOKEN%', 'accessTokenSecret' => '%ACCESSTOKENSECRET%', 'limit' => 1 );
$see->configureViewPart('%PART%', 'controller', 'SeeSocial');
$see->configureViewPart('%PART%', 'controllerMethod', 'getTweets');$see->configureViewPart('skiptontwitter', 'controllerPassin', $twitterSettings);
$see->configureViewPart('%PART%', 'globalCache', true );
$see->configureViewPart('%PART%', 'caching', true );
$see->configureViewPart('%PART%', 'cachingTimeout', 1800 );

then in your function part 

<?php foreach( $data as $tweet ) {
$see->html->output( "{$tweet['post']}" );
}
?>

to output the date you could do the following

<?php
foreach( $data as $tweet ) {
$date = $see->format->date($tweet['pubDate'], "d F Y, H:i");
$see->html->output( "{$tweet['post']}" );
}
?>