SS Twitter Feed



SS Twitter Feed Overview

A plugin for Craft CMS that allows you to retrive your Twitter timeline.

Configuring SS Twitter Feed

Once you’ve installed the SS Twitter Feed plugin. Go to plugin settings to connect to twitter. Just click on button get your Twitter Access Token and Twitter Secret.

Using SS Twitter Feed

You can directly access multidimensional array of your Twitter posts using following method. Each post has Following components you can get to:

If you think exclude retweet, You should try to pass second parameter like:

{% for tweet in craft.ssTwitterFeed.displayPost( '5', 'true' ) %}
{% endfor %}
  • name ( The name of the Twitter account )
  • screen_name ( The screen name of the Twitter account )
  • text ( Twitter text )
  • profile_image_url( Profile picture of your Twitter account )
  • url ( The Twitter url )
  • image_url ( Twitter media image url )
  • images ( Multiple images retrieve ( array ) )
  • retweet_count ( Total number of retweet count )
  • favorite_count ( Total number of likes the post recieved )
  • created_at ( The tweet post time )
  • retweet_link (The retweet link on site )
  • favorite_link ( Favorite link )

Example:

{% for tweet in craft.ssTwitterFeed.displayPost( '5' ) %}
    {{ tweet.url }}
    {{ tweet.screen_name }}
    {{ tweet.text }}
    {% for images in tweet.images %}
         {{ images.url }}
    {% endfor %}
    {{ tweet.created_at }}
    {{ tweet.retweet_count }}
    {{ tweet.favorite_count }}
{% endfor %}

Free

Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Information

Report an issue