Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9244713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:06:12+00:00 2026-06-18T09:06:12+00:00

I am using the following code to grab the twitter data from a specific

  • 0

I am using the following code to grab the twitter data from a specific user and outputting it to a div, However it is not working. Nothing is outputting, I am really not sure if I am doing this right, I took this forked this snippet from someone else. I am not sure if I need to authenticate with twitter and how to do so?

http://jsfiddle.net/elijahmanor/Nstnx/22/

Js

$(function(){    

    var twitterUsername = 'anderskitson'
    var url = "http://twitter.com/status/user_timeline/" + 
        twitterUsername + 
        ".json?count=5&callback=?";
    $.getJSON( url, function( data ) {
        var twitterList = $( "<ul />" );
        $.each( data, function( index, item ) {
            $( "<li />", { "text" : item.text } )
                .appendTo( twitterList );
        });
        $( "#output" ).fadeOut( "fast", function(){
            $( this ).empty()
                .append( twitterList )
                .fadeIn( "slow" );            
        });

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:06:13+00:00Added an answer on June 18, 2026 at 9:06 am

    You are using an old form of the URL. That form has been deprecated. You also need to add callback=something to the URL so that it will use JSONP and get past the cross origin issue. Also, update your jQuery to the latest version. The fiddle was using an old version.

    Try this code:

    $( "#getTweets" ).bind( "click", function() {
        var twitterUsername = $( "#twitterUsername" ).val();
        var url = "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&count=2&callback=jsonp&screen_name=" + 
            twitterUsername;
        $.getJSON( url, function( data ) {
            var twitterList = $( "<ul />" );
            $.each( data, function( index, item ) {
                $( "<li />", { "text" : item.text } )
                    .appendTo( twitterList );
            });
            $( "#output" ).fadeOut( "fast", function(){
                $( this ).empty()
                    .append( twitterList )
                    .fadeIn( "slow" );            
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following code to grab data from JSON. $(document).ready(function() { $.getJSON(http://www.example.com/data.php?id=113&out=json, function(data)
I'm using the following code to grab images from the web. It uses Gridview
I'm using the following PowerShell 2.0 code to grab input from a vb inputbox:
I'm using the following code to grab the title attribute from each image I
I am using following code to get bitmap from url. This function is used
I am using following code for inserting comments: <div id=2 class=789678> <div id=dynamic2> <span
i am using the following code to convert an excel set of data on
I'm using the following code to grab a wmv file through a WebResponse. I'm
Using Scala, in a Play 2.0 project, I am trying to grab data from
I'm using Apache Commons HttpClient to grab some data from a server. My problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.