-
Notifications
You must be signed in to change notification settings - Fork 4
Twitter feed
Plou edited this page Oct 13, 2015
·
1 revision
Use oauth-twitter-feed-for-developers
Once instalation and API key filled:
// In your php file (page.php, index.php ...)
$context['tweets'] = getTweets($tweetCount, $twitterID);
{# template file: twitterlist.twig #}
<ul class="twitterbox-feed »>
{% for tweet in tweets %}
<li class="twitterbox-tweet">{{ tweet.text | twitterify }}</li>
{% endfor %}
</ul>
To parse tweets for links and hashtags: https://github.com/Upstatement/timber-sugar/blob/master/timber-sugar.php
Add: .tweetcache
to gitignore.