You can show your Twitter Feed from a Username anywhere on your website. Some of the important attributes you’ll require while setting up this widget are listed below:
<ul class="iconlist twitter-feed" data-username="envato" data-count="2">
<li></li>
</ul>
You must be logged in with your Envato Account for Free in order to view this Content.
Login with EnvatoYou can also show the Twitter User Avatars on a Twitter Feed. .twitter-feed-avatar
<ul class="iconlist twitter-feed twitter-feed-avatar" data-username="envato" data-count="2">
<li></li>
</ul>
<div class="fslider customjs testimonial twitter-scroll twitter-feed" data-username="envato" data-count="2" data-animation="slide" data-arrows="false">
<i class="i-plain i-large color icon-twitter nobottommargin" style="margin-right: 20px;"></i>
<div class="flexslider" style="width: auto;">
<div class="slider-wrap">
<div class="slide"></div>
</div>
</div>
</div>
The new Twitter API v1.1 no longer supports unauthenticated User Timeline calls so you’ll have to now authenticate to OAuth so that you can show your Twitter Feeds on your Websites. Follow the instructions below to setup your authentication:
Create new application
and enter the application details.
Create my access token
. You may need to refresh the page after a few seconds if it doesn’t appear automatically.
include/twitter/tweets.php
file.$consumerkey = ""; // Twitter App - Consumer Key for OAuth $consumersecret = ""; // Twitter App - Consumer Secret for OAuth $accesstoken = ""; // Twitter App - Access Token for OAuth $accesstokensecret = ""; // Twitter App - Access Token Secret for OAuth
and Save
the file.
Note Remember to set the permissions
of the include/twitter/cache
folder to 755 so that the Twitter Feed cache files can be saved otherwise your Twitter Feeds won’t work.
Last Modified: February 10, 2020