Daniel Mitchell
Hello, I have found this methodolgy does not always work. Also, because it is not contained in Google documentation, it is not guaranteed to always be available. I have discovered an alternate way of display the profile picture of a given username using a little piece of javascript to get and then display the picture from the youtube feed api.
Basically you can make a call to this url:
http://gdata.youtube.com/feeds/api/u...ubeProfileInfo replacing the [username] with the user you want. This url returns the results as a json wrapped in a .js file which will call the javascript function provided in the paramter ‘callback’. e.g. function showYouTubeProfileInfo(data)
{
document.getElementById(‘userprofile’).innerHTML = ” “;
}
This then enables you to process the returned data and display it.
I have got sample code here
http://daniel-mitchell.com/blog/disp...e-by-username/ which you can use.
-----------------------------------
Hello. Sorry it seems some of the javascript in my above comment has been stripped out. The innerHTML should contain a image tag with the src set to: data.entry.media$thumbnail.url
Hope that helps.