Is there a a predictable url to retrieve a user's profile images either by username or id?
...similar to google or facebook:
"https://graph.facebook.com/#{FACEBOOK ID}/picture"
"https://profiles.google.com/s2/photos/profile/#{GOOGLE ID}"
I found this https://dev.twitter.com/docs/user-profile-images-and-banners but it looks like I'll have to do a whole separate request just to get the profile image.
Go to Settings and scroll down to the bottom to check for the option to request your Twitter archive. If you do see it, go ahead and click the button. You'll receive an email with instructions on how to access your archive when it's ready for you to download.
Profile banners allow users to further customize the expressiveness of their profiles. Use POST account/update_profile_banner to upload a profile banner on behalf of a user. Profile banners come in a variety of display-enhanced sizes.
Check the dimensions. Recommended dimensions for profile images are 400x400 pixels. Recommended dimensions for header images are 1500x500 pixels.
A predictable URL similar to Facebook or Google to retrieve a user's profile images by username is as follows:
"https://twitter.com/[screen_name]/profile_image?size=original"
For example
"https://twitter.com/sqlpowershell/profile_image?size=original"
Other sizes include
Totally relieved not to have to use the API!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With