WordPress.org

Ready to get started?Download WordPress

Forums

Like Box for Twitter
Fix for Twitter API issue (4 posts)

  1. tady
    Member
    Posted 3 years ago #

    Hey guys,

    This was driving me nuts, as it's the best plugin I could find for the way I wanted it to look. So I decided to fix it myself.

    I've made a number of changes to my plugin for display purposes so I can't give you precise line numbers. Basically look for the following line:

    $options[CURLOPT_URL] = 'http://twitter.com/statuses/followers/'.$instance['twitterfans_username'].'.xml';
    (in mine it's line 89)

    Comment it out (always comment before committing!) and add the following line in it's place:

    $options[CURLOPT_URL] = 'http://api.twitter.com/1/statuses/followers/ids.xml?'.$instance['twitterfans_username'].'=twitterapi';

    I also uncommented the line : $twitter_fans = get_option('twitter_fans');

    Not sure if it was something someone else here in my office commented out, or the original developer, but I put it back in anyway. Haven't had time to assess it's true functionality.

    Change the number of fans in your widget (to force a cache reload of the fans) and refresh the page. Should work fine.

    Laters,

    T

  2. Laurent J.V. Dubois
    Member
    Posted 2 years ago #

    Thanks for the solution.

  3. OC2PS
    Member
    Posted 2 years ago #

    It does show a list of followers, only...they are not based on the username...i.e. they are not your followers.

  4. S. Abid
    Member
    Plugin Author

    Posted 2 years ago #

    I just released the new version that fixes all the issues. Please upgrade.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic