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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:19:22+00:00 2026-05-21T18:19:22+00:00

I want to load in a user’s home timeline after authenticating through ‘sign it

  • 0

I want to load in a user’s home timeline after authenticating through ‘sign it with twitter’ using OAuth. I’m using this library to handle the authentication part https://github.com/jmathai/twitter-async

The authentication part is working fine but I’m unclear about how to send requests to twitter api as the given authenticated user. I want to make an ajax request for for the user’s home timeline like this:

// this call produces "is not allowed by Access-Control-Allow-Origin" error
$.getJSON("http://api.twitter.com/1/statuses/home_timeline.json", function(json) {
  console.log(json);
});

So my question is how do I send the user’s access token along with my request and where is the token stored? Or am I approaching this problem wrong?

  • 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-05-21T18:19:22+00:00Added an answer on May 21, 2026 at 6:19 pm

    You need to make this request into a JSONP request, so you can do cross-domain AJAX.

    $.getJSON("http://api.twitter.com/1/statuses/home_timeline.json?callback=?", function(json) {
      console.log(json);
    });
    

    The ?callback=? converts this into a JSONP request.

    The link you provided is for a PHP library. If you want to make API calls in JavaScript, you need to use a JavaScript OAuth library.

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

Sidebar

Related Questions

I have a UIView that I want to load when the user clicks a
I have a singleton which once hit will load user profile information, I want
I want to load a particular link when user press link. jQuery: <body> ...
I want to load data from a MySQL database to a PHP page using
I have a simple ASP.NET page where after the initial page load the user
I have UITableView and I want to load more data when user tries to
I want to load a resource with this: InputStream iStream = Config.class.getResourceAsStream(autopublisherpath.cfg); So I
I want to load the user preferences when I start the application. The preferences
I want to load more content when the user scrolls the webpage. I tried
I want to load one or more DLLs dynamically so that they run with

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.