I am creating a facebook - style site, but have hit a brick wall when getting a link and if it is a youtube video, display it as an embeded youtube video.
Basically - if a database value contains the link: http://www.youtube.com/foo it embeds that like facebook does.
THIS IS NOT Facbebook API and I don't mind how to do it.
Thanks.