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

  • Home
  • SEARCH
  • 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 3664360
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:38:15+00:00 2026-05-19T01:38:15+00:00

Update: It turns out that Twitter doesn’t know single tweet ID from URL fragment

  • 0

Update:

It turns out that Twitter doesn’t know single tweet ID from URL fragment segment. What it does is have “lastest tweet of last viewed twitter” in the inline JavaScript. If you view somebody’s profile and then go to his/her last tweet single page. The inline JavaScript has text of the last tweet by the author.


Original Question:

Each tweet has a single URL such as http://twitter.com/#!/DeliciousHot/status/23189589820702720. The tweet identification (/DeliciousHot/status/23189589820702720) is in the URL fragment segment which is not actually sent to server.

Originally, I thought it works this way:
The URL response doesn’t have this tweet specific info. It is JavaScript module that extracts tweet id from current browser URL and fetch tweet payload with AJAX. The page content is then updated with the tweet payload.

To my surprise, it doesn’t work this way!

With Firebug, you can view that response of http://twitter.com/#!/DeliciousHot/status/23189589820702720 has tweet payload “10 Signs of a True Gentleman” text in inline JavaScript. The tweet payload is not fetched by another AJAX.

So, how does Twitter server get to know the expected tweet ID even it is in URL fragment segment?

  • 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-19T01:38:15+00:00Added an answer on May 19, 2026 at 1:38 am

    Two methods:

    1. When you’re not logged in, it has a redirect:

      (function(g){var a=location.href.split("#!")[1];if(a){window.location.hash =
        "";g.location.pathname = g.HBR = a.replace(/^([^/])/,"/$1");}})(window);
      
    2. When you are logged in, it makes a call to api.twitter.com:

      http://api.twitter.com/1/statuses/show.json?include_entities=true&contributor_details=true&id=23189589820702720
      

    I have no idea where in the code this happens, but the developer tools logged it.

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

Sidebar

Related Questions

Update: Turns out that this problem was because half my mongrel did not restart.
Update: So, this turns out to have nothing to do with Tortoise SVN. I
Update : this is more-or-less a dupe , and it turns out to be
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update : Looks like the query does not throw any timeout. The connection is
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
I've got a post-commit hook script that performs a SVN update of a working
In short,I've written an application that parses text files in specified formats from different
Update: Solved, with code I got it working, see my answer below for the
Update: giving a much more thorough example. The first two solutions offered were right

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.