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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:50:51+00:00 2026-06-02T00:50:51+00:00

Twitter users can login and post comments on my site, as well as new

  • 0

Twitter users can login and post comments on my site, as well as new posts.

Now, i am storing the user ID on my comments table on the database.
I was wondering what is the best practice to get users avatar and show it anywhere.

I guess that using the API is not the best option as it has a rate limit of 150/hour or 350/hour if OAuth is used.

Then i thought about getting it with this little code:

<?php
$username = "twitter";  // <-- You did not use quotes here?! Typo?
$xml = simplexml_load_file("http://twitter.com/users/".$username.".xml");
echo $xml->profile_image_url;  // <-- No $xml->user here!
?>

But if i have to show, let’s say, 20 avatars on one same page, maybe there will be a little delay getting all of them.

I also thought about storing them on the database on a users table with the nick and so on. But then… what if the user updates his profile picture? I would still having the old one…

So, what is the best practice for it?
There are many pages and systems with have to deal with same problems such as pinterest.com, or liveFyre comment system, disqus…

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-02T00:50:52+00:00Added an answer on June 2, 2026 at 12:50 am

    I would say that you need to store the avatar URL generated by twitter and use that without calling the API everytime. Or use this service http://tweetimag.es/

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

Sidebar

Related Questions

I have a website where users can enter their Twitter Login information. This site
I want to post on twitter wall but don't want that user can edit
I'm using OAuth in my web app, and users can login with twitter. I
I have a bit of code here where users can login via their twitter
I'm building a small twitter style microblogging service where users can follow other users
Am developing an iPhone app. From my app user can to follow my twitter
I have two types of users on the database: -Web registered users -Twitter users
I want to put facebook,twitter,flickr into my iPhone app, so that users can easily
Can we build applications on top of the twitter user base? Is it just
I have a login dropdown much like Twitter. You can check it out here

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.