Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
183
rated 0 times [  185] [ 2]  / answers: 1 / hits: 31823  / 15 Years ago, fri, january 22, 2010, 12:00:00

Is there a quick way to pull twitter profile image in PHP or Javascript? I need to get the url of the FULL image (not avatar size). Thanks. Any code sample is good.


More From » php

 Answers
27

Twitter has had a nice simple URL.



https://api.twitter.com/1/users/profile_image/abraham



It has size options like ?size=bigger



You can read more about it on Little known Twitter and TwitterAPI tips and tricks.



Twitter now has documentation up as GET users/profile_image/:screen_name.



Update: Support for this method has been removed from v1.1 of the API. Recommended practice going forward is GET /users/show and cache profile_image_url locally in your service/app.


[#97777] Monday, January 18, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leifw

Total Points: 88
Total Questions: 103
Total Answers: 103

Location: France
Member since Thu, May 6, 2021
3 Years ago
;