125 comments found.
Great plugin and top-notch support!! Thanks again Austin!
Glad to have helped, Ben!
Feel free to leave a rating on the item 
Heya,
Got a problem?
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xxxxxx.xxx/httpdocs/src/ultimate.twitter.feed.php on line 67
Any ideas?
Thanks.
Hi, seems I had this prob before?
Hi again,
Twitter recently (just yesterday) made changes so that you can only access the API using a HTTPS connection. I’ll be publishing a fix for this problem within the next couple of days.
For the time being, you can suppress the error by putting
error_reporting(0);
at the top of your PHP file.
Sorry for the inconvenience.
Thats really nice script. But i cant configure tweet count. i use multiple usernames how can i limit tweets?
Hi adeniz,
There are two options for handling tweet counts using the option count_mode
Twitter::CountTotal – only prints count number of tweets total.
Twitter::CountPerObject – prints count number of tweets for each identifier. relevant only when multiple screen names, search queries, etc. are specified.
You can find more information about options here – http://austinbrunkhorst.com/demos/twitter-class/#options
Thank you i found and do it. Really nice work Austin i m glad to purchase your item.
Great! I’m glad you got it working.
Hi, Seems to be a great tool. Unfortunatly I got the following error. I assume this is caused by Twitter API. But do you have any idea how to fix this?
the following errors were reported by Twitter - Could not authenticate you; code 32. in line (548) of (/include/ultimate.twitter.feed.php)
Hi vengo01,
Did you create an application on Twitter, and pass the appropriate keys to the class options? A walk through of the setup can be found here – http://austinbrunkhorst.com/demos/twitter-class/#setup.
got it… works like a charm. Was a typo in the key 
Great!
Glad you were able to resolve the issue.
When migrating the testsite to final location the feed is not loading, this is the file: {ktbverhoog]}} Any idea what causes this issue? All app keys are set properly. Thx.
in the cache file I see data:[null]
Hello again,
Make sure you copy the file src/cacert.pem included in v3.2 or greater into the same directory as the class file.
Very sorry. Some help for include this script in a html file?. Thanks in advance Just I buy this today
Hi,
we have PHP 5.2 on server, does lass for php exists 5.2?
Thank you
Hi inferno,
Unfortunately this class was developed for 5.3+. It’s very difficult to target a version of PHP that was released almost 8 years ago with the features used in this class.
Hi, how disable the caching?
Hi there,
You can disable cache by setting the option cache_life to 0.
Hi, is it possible to extract the tweet text in one div and the tweet relative time in another div without using the ‘format’ option?.
Secondly i don’t want the class to add any html to the tweet. how do i remove the default added ‘
What do you mean by extract? You can change the options html_before and html_after to remove anything else generated by the class.
i meant display. But i got it now. i used html_before and html_after.
Is it possible to exclude retweets? I want to show only my own tweets?
Yes, you can set the option include_rts to false. Here’s a list of other options you can send for the request_type => Twitter::RequestTimeline option. – https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline. Please note that you must delete the cache file before the changes will appear (without retweets).
I have a website which requires two twitter feeds on one page, each relating to a different twitter account. Is this possible with the Ultimate Twitter Feed Class ?
Yes that is possible. If you want two usernames in one feed, on the screen_name option pass an array of each username. for example,
$options = array(
'screen_name' => array('name1', 'name2')
// .. other options
);
Where the two usernames will be name1, and name2.
If you want to display two different instances, you can call ->setOption('screen_name', 'name2'); after the first feed.
You can also find full examples here – http://austinbrunkhorst.com/demos/twitter-class/#examples.
This looks awesome, is there any way to use this to display a feed from a twitter list instead of manually inserting each user’s username?
Thanks!
Indeed you can, it’s very simple. You just need to change a few options.
First, you need to set the request_type to “1.1/lists/statuses”. From there, you need to add the options that Twitter requires. This is slug (the list name), and owner_screen_name (the screen name of the owner of the list).
For example:
$options = array(
'request_type' => '1.1/lists/statuses',
'slug' => 'minecraft',
'owner_screen_name' => 'EltonMayfield'
'consumer_key' => '...',
'consumer_secret' => '...',
'user_token' => '...',
'user_secret' => '...'
);
You can view the rest of this request type’s documentation on Twitter – https://dev.twitter.com/docs/api/1.1/get/lists/statuses
Hi Austin, thanks a ton for this will need to give it a try, if I fail, which is highly likely, what would you charge to implement?
It depends on what you mean by implement. If it’s simply to get the script running, I will not charge you anything.
I have a site I need to display a twitter list and the feed of tweets form this list. I can probably follow most of the setup instructions but getting the code you posted here into the whole setup is beyond my skill level. I purchased your script it looks great.
I appreciate it!
Just change the options array I posted earlier with the one in the setup example, like so.
$options = array(
'request_type' => '1.1/lists/statuses',
'slug' => 'minecraft',
'owner_screen_name' => 'EltonMayfield'
'consumer_key' => 'YOUR CONSUMER KEY',
'consumer_secret' => 'YOUR CONSUMER SECRET',
'user_token' => 'YOUR USER TOKEN',
'user_secret' => 'YOUR USER SECRET'
);
$twitter = new Twitter($options);
$twitter->PrintFeed();
Also: currently the zip that is on CodeCanyon doesn’t have the correct folder structure (src/, docs/), it’s just the src/ folder so the documentation on my website might be a little misleading. This will be fixed very soon.
Hi AustinBrunkhorst
I finally got around to trying this out myself
I linked to the class in wordpress functions.php like this require_once(get_stylesheet_directory() . ’/functions/twitter/src/ultimate.twitter.feed.php’ );
I used this which is your code above combined with one of the examples on your docs http://pastebin.com/J8qjFNSZI obviously have no idea what I’m doing
I get the following error
http://pastebin.com/RQYzKRD5What I’d like to create is
1. A feed of tweets from a twitter list 2. A list of the twitter users in that list
Can you provide any assistance?
Hi nomadone,
The option owner_screen_name is the Twitter screen name of the user who created the list that you want to download.
The option slug is the name of the list that you intend to download.
The example I provided was to download a Minecraft list created by EltonMayfield (https://twitter.com/EltonMayfield/lists/minecraft).
Hi, my download must be broken! There is only 2 php-files, 1 css-file and 2 txt-files in the zip. Is this all there is??
Hi janjo,
It looks like the folder structure got mangled when making the latest update. I’ll update with the correct structure. In the mean time, you can add the files that are in your current zip to a “src/” folder, and will work just like in the examples on the documentation. If you need zip ASAP, feel free to email me at contact@austinbrunkhorst.com and I’ll send you the files directly.
HI, can you run this on a regular php website or do you need to have word press or anything? also can you style the css for the layout, and finally if you just wish to display the last tweet from a username is this possible?
Hi Steve,
You can certainly do everything you were wondering.
This script was developed from scratch, and doesn’t rely on any frameworks or blog systems such as Wordpress.
You can style however you feel like. You can find examples here – http://austinbrunkhorst.com/demos/twitter-class/#examples.
You simply have to set the
countoption to 1.
Thanks for your help, i have bought this now but i cannot find where you add the username/screen name you wish to show tweets for in the php code
No problem!
Unfortunately on the last update I forgot to include the documentation directly in the file. This is in the process of being updated. For now, you can view how to setup the script at the documentation here – http://austinbrunkhorst.com/demos/twitter-class/#setup. If you need any additional help you can email me in the meantime at contact@austinbrunkhorst.com.
Hi there, nice script. I wonder if you could add a functionality so you can also display search results. For example searching twitter for a keyword and then showing like 10 posts from various users who posted something related to the keyword. Basically just like twitter search.
This feature as well as others such as multiple usernames, direct feed data instead of Twitter->PrintFeed(); and more are coming in the next update!
Sounds great, I am very much looking forward to this!
Quick question: Do you know more or less when the update that allows searching will be released? Just checking so I know when to check again 
It should be sometime this month. It’s hard to estimate as I’m very busy with other projects at the moment.
Great, thanks for the reply 
Just wanted to check once more if you are going to update this for sure so it includes search, as I would buy it now if you confirm, so I can receive update notifications. I believe that you would get quiet a few more sales if you do, as there are many twitter tools here on CC, but none of them currently work for searching, meaning your tool would be the first that works again after the API update, which will increase sales. Just saying 
Bought a copy now so I can get the update notification without spamming too much here 
Hi MWCD,
I appreciate your support and curiosity. For that, I decided I’ll prioritize pushing a version that includes search ASAP.
Thanks, looking very much forward to this update 
The script is done, I’m just working on the documentation now. I ended up re-writing everything again. There is support for as many usernames as you want in one feed, and any request that the API supports (including search). I also added support for displaying emojis.
is it possible to show only the latest tweet only?
Yes, it’s very simple. Just set the option count to 1.
Heya,
Looking forward to getting this working.
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/barnklubb.com/httpdocs/src/ultimate.twitter.feed.php on line 67
Current PHP version: 5.3.27
Thanks for your help.
Nick
Hi there,
Just a couple of things – do you have json, and cURL installed on your server? Also, what is the username you are requesting?
Yes. BarnklubbUK
Can you show me via email the setup of the script? contact@austinbrunkhorst.com
All working now, thanks for the help Austin. Great script, does exactly what it says on the tin.
I can’t edit my previous comment, but the reason I was asking for the UTF-8 it’s because when I use the: $twitter->PrintFeed(‘twitterStyle’); example in your documentation with the css style it doesn’t work well for character in french. I got junk for special character 
I found in the cache file that for example the character é that it was replace with : u00e9 for some reason. I don’t know if it’s the source of the problem or not.
Well I did some Google and someone had the exact problem that I described here: https://dev.twitter.com/discussions/16192
Hi Firemad,
It looks like an issue with the response from Twitter’s API. You can try encoding the tweet data manually with the callback function by replacing the text, like so.
$tweet['text'] = utf8_encode( $tweet['text'] );
Hi,
I tried but it didn’t work.
NVM I did a mistake
it’s working fine.
Glad to hear you got it working
.
Does it’s support UTF-8 ?
Does it’s support the latest API 1.1 from twitter ?
NVM: I didn’t see it in the description
I will buy it.
Hi there, I was wondering if it is also possible to search for a keyword using this script. For example listing the search results for a word like google instead of listing user feeds only.
Hello, I just bought this and set it up but I keep getting error 500 on my server.
What PHP version are you running on your server?