Created
June 13, 2013 23:49
-
-
Save jptksc/5778403 to your computer and use it in GitHub Desktop.
Get a large Twitter profile image without having to deal with v1.1 API authentication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_twitter_profile_img($username) { | |
$xml = simplexml_load_file('http://twitter.com/users/'.$username.'.xml'); | |
return str_replace('_normal', '', $xml->profile_image_url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should work as well: