Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Freek Wevers
PLUS
Freek Wevers
Courses Plus Student 14,599 Points

TwiGet Twitter Widget not working

I just watched the video "Adding Widgets to Our Footer" in "How to build a Wordpress theme" and Zac is using the TwiGet Twitter Widget. I just followed his steps and installed, activated and configured the widget in the left footer area, but when I visit the site then the widget keeps showing a loading animation without loading any tweets.

I guess this has something to do with the recently changed Twitter API. Anyone else having this problem? Or did I do something wrong? Maybe I'm blaming Twitter a bit to soon :-)

6 Answers

Freek Wevers
PLUS
Freek Wevers
Courses Plus Student 14,599 Points

Thanks for your replies guys. I don't think they resolved this though. The plugin details mentions that the last update was about 170 days ago..., well before Twitter changed their API.

I solved this issue by installing a similar plugin (Twitter Widget Pro) and this works just fine. The goal of the video was to show how to implement widgets into the site. It doesn't seem very important to me which specific widget is used. I was just curious to see if anyone else managed to get the widget working. I'm still not completely sure if I made a mistake or not, but I had some extra practice working with widgets.

@Zac: Can you still see the TwiGet widget working? Because if you do then I'm obviously doing something wrong.

John Locke
John Locke
15,479 Points

If the widget hasn't been updated since the switch to Twitter API 1.1, that might have something to do with it. Any widgets that were using the old API seem to have similar problems with the "Loading..." never going away, because no new data is being written to the page.

You might have to look for a new plugin for the time being, or possibly dive into configuring your own solution using OAuth, PHP, and JavaScript.

Alex Hedley
Alex Hedley
16,381 Points

Check out Ray's excellent tut:

"I built a clone of the old twitter API in PHP so that it works with the twitter 1.1 API https://t.co/18Xj3gxayf"

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Right you are Freek Wevers, I was thinking of a different WP Twitter plugin :p

I made an update to the video based on your suggestion.

ricardogutierrez
ricardogutierrez
11,349 Points

Hi Zac and TreeHouse members!.

I was trying to install the Twitter Widget Pro without success. After installing and activating the plugin admin throws 2 messages:

"There are no HTTP transports available which can complete the requested request."

"You need to authorize Twitter Accounts". (Button did't work).

:(

... Then I tried to use "Latest Tweets" from:

http://wordpress.org/plugins/latest-tweets-widget/

on entering the "secret" information provided by "dev.twitter.com" the wordpress admin throws error:

"There are no HTTP transports available which can complete the requested request."

Maybe is something in the WAMP server? I don't know what else to do but keep googlin.

Thanks. Bye!.

ricardogutierrez
ricardogutierrez
11,349 Points

Yes !!! got it...

Ok ... this is what I did:

1- Enabling the "php_curl" in WAMP resolve the message : "There are no HTTP transports available which can complete the requested request."

2- Go to wordpress forums and found that if you "reset" the information (various times) on the "dev.twitter.com" the problem with the "You need to authorize Twitter Accounts" disappear (the blue button will work). Remember to update information and press the Activate Account on each attempt to "reset".

3- At this point the account was succesfully activated (yayyyy !!) but widget didn't show on left footer :(

4- I go to "widgets" in the wordpress area and found that the previous "test" shown up instead of the Tweeter (don't know why). I then proceed and remove all "inactive" widgets and voilรก !!! the Twitter Widget Pro appears on the left footer.

:D hope this info helps someone.

Thanks you !

Helen Anderson
Helen Anderson
6,519 Points

Hi all

Hoping someone who has been playing around with the Twitter Widget Pro can help.

I've successfully installed Twitter Widget Pro and it appears to be working as intended. However, I want to tweak some of the display.

  1. I don't like is how my twitter user name displays next to the Twitter header, like this: Twitter: helenganderson How do I remove my user name but keep the Twitter header?

  2. "from Tweet Button" follows the date appended to the tweet. How do I either remove this, or get this looking like a decent link or button.

Thanks all Helen

If anyone is not completely happy with the Twitter Widget Pro, I found the Brankic Twitter Widget to be a little easier to use. You can install the plugin and then enter the details directly from the widget. It also does not add any additional styling.