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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:56:22+00:00 2026-06-13T14:56:22+00:00

I am trying to figure out a way with twitter’s new guidelines that will

  • 0

I am trying to figure out a way with twitter’s new guidelines that will allow me to embed specific tweets from different users dynamically into a webpage.
I have looked at Twitter’s oEmbed endpoint and it seems like what I need, however I am not sure how to accomplish this via one ajax call.

I obviously do not want to make tons of calls to the Twitter server and max out, so is there a way to run a loop inside a ajax call to try different tweet ids without hitting the server multiple times?

Or is there another method I am not familiar with that someone could suggest?

I hope this is clear enough of a question, thanks for taking the time to read.

cheers

$(document).ready(function(){ 
var output = $("#output");
var ids = [ php code to build an array of IDs];

for(i=0; i<ids.length; i++){
   $.ajax({
 url: 'https://api.twitter.com/1/statuses/oembed.json?id=' + ids[i] + '&align=center&callback=?',
 dataType: 'json',
 success: function(data) {
  $(data.html).appendTo(output);
    }
      });
}
});
  • 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-13T14:56:23+00:00Added an answer on June 13, 2026 at 2:56 pm

    For anyone that is interested, the way i’ve accomplished this is to seek out and store the embedded tweet html blockquote into a database and just pump them out one by one…

    for instance..

    <blockquote class="twitter-tweet"><p>RT @<a href="https://twitter.com/nosherwan">nosherwan</a>: Enyojs of webOS fame is now open source and looks like a serious contender for multi platform application development</p>&mdash; Enyo (@EnyoJS) <a href="https://twitter.com/EnyoJS/status/263664668839645184" data-datetime="2012-10-31T15:32:10+00:00">October 31, 2012</a></blockquote>
    

    Adding in the script tag once.

    <script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
    

    Hope it helps someone.

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

Sidebar

Related Questions

I'm trying to figure out a way to pull all tweets of a specific
Trying to figure out a way where I can pass some data/fields from a
I'm trying to figure out the way to get all records from a table
Trying to figure out a way to throw out attributes in this data that
Im trying to figure out a way to strip out all html tags from
I am trying to figure out a way to count the amount of specific
I'm trying to figure out a way to select elements that are overlapped (and
I'm trying to figure out a way to create a MockRepository that implements a
I'm trying to figure out a way to detect files that are not opened
I'm trying to figure out a way to squeeze spaces that are not in

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.