I have been using the Twitter plugin on my site for some time now. It’s been working as it should until recently. “No public Twitter messages” is display on my Twitter message board even though I know for sure that I have tweets on my Twitter page. Hence the start of a search for a solution. It turns out that Twitter recently changed their RSS feed url to a different format, so the twitter.php file that came with the plugin need to be updated for it to work again.
To quickly resolve this problem especially for the not-so-tech-savvy is to update line 54 in the twitter.php file.
Here is how to do it. Go to your plugin folder on your web server. Open “twitter.php within the “twitter-for-wordpress” folder.
Navigate down to line 54 where it reads:
$messages = fetch_rss(‘http://twitter.com/statuses/user_timeline/’.$username.’.rss’);
Replace line 54 with the follow line below:
$messages = fetch_rss(‘http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=’.$username);
This solution worked well for me and it was easy execute. For more information on how to edit and or update your Twitter for WordPress settings, go to rick.jinlabs.com/code/twitter/
9 comments »
November 6th, 2012
I think you may need to update line 168 too.
November 6th, 2012
Please enlighten us about the possible need to change line 168 as well. I didn’t and it seems to be working fine.
November 27th, 2012
You can follow up on the two lines here: http://wordpress.org/support/topic/no-public-twitter-messages-1
January 21st, 2013
Thank you! Worked fine…you dont know how much time I’ve spent on this…
January 23rd, 2013
Thank you this fixed my issue! How frustrating that the plugin author hasn’t bothered to fix this by now. Give them a big thumbs down!
June 2nd, 2013
I have recently updated to wordpress 3.5.1 and the problem is happening again. I had double checked the twitter.php file. Line 54 is written correctly as stated in my post but I am still seeing “No public Twitter messages.” on my website. Any one know how to fix this issue after updating to wordpress 3.5.1? Please help!
June 13th, 2013
Still experiencing this problem. Anyone else have solutions or updates? Thanks!
July 3rd, 2013
Same for me done the updated code, but â€œNo public Twitter messages.â€
August 13th, 2013
Yea, I am as well and haven’t been able to find a solution to this or an alternative plugin. Any suggestions would be great!