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 8230061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:00:37+00:00 2026-06-07T17:00:37+00:00

Twitter APIs : update working, but filter does not javascript twitter oauth twitter-api jsoauth

  • 0

Twitter APIs : update working, but filter does not
javascript twitter oauth twitter-api jsoauth

In the following code, I instantiate an instance of OAuth from the jsOAuth library by bytespider

    // jsoauth API reference:
    // http://bytespider.github.com/jsOAuth/api-reference/

    var twitter = new OAuth(oauthOptions);

    //authentication occurs

    console.log('url: ' + url);
    console.log('data: ' + JSON.stringify(data));

    twitter.post(
        url,
        data,
        success,
        failure
    );

When I access the stream:

    url: https://stream.twitter.com/1/statuses/filter.json 
    data: {"track":"%40twitterapi"} 
    --> This does not work, neither the `success` nor `failure` callbacks get called, just hangs

When I tweet:

    url: https://api.twitter.com/1/statuses/update.json 
    data: {"status":"foobar","trim_user":true,"include_entities":true} 
    --> This works, the `success` callback gets called

My guess is that the authentication details are not getting through to the stream.twitter.com API, even though it get through to the api.twitter.com API. Can safely rule out OAuth issues as being able to tweet demonstrates that authentication has succeeded.

What am I doing wrong here?

Thanks!

  • 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-07T17:00:39+00:00Added an answer on June 7, 2026 at 5:00 pm

    It’s not that

    This does not work, neither the success nor failure callbacks get
    called, just hangs

    because you are using the Streaming API, which was meant to “hang”, as using this means that you are opening a connection to Twitter’s servers that will be kept alive as long as the application is running. Every new tweet will be then sent to this connection in realtime like water through a pipe.

    You should look into using HTML5 WebSockets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im working for a company who's website uses javascript to get facebook and twitter
I am not a big expert on Facebook and Twitter APIs and I would
when we use these apis •For Twitter: twitter4j •For Facebook: fb-java-api •For Linkedin: linkedin-j
I went to twitter's API, it redirected me to google code, and the website
I have the following code: $routes = array( 'twitter_output' => new Zend_Controller_Router_Route( 'twitter/:username\.:format', array('controller'
I'm attempting to put together a little mashup with some twitter APIs. However, the
         I was looking at some APIs like twitter, google APIs. From what I understand
I've been looking at examples of REST API's like Netflix http://developer.netflix.com/docs/REST_API_Reference#0_59705 and Twitter and
With Twitter Bootstrap 2, how do get links working within collapse-nav: <div class=navbar navbar-fixed-top>
Using Twitter Bootstrap's [Tabbable Tabs][1], it says to: Enable tabbable tabs via javascript (each

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.