The script is pretty simple and will use YouTube and Facebook's APIs. There are two steps:
#1 - I need a search field on my site to return search results from YouTube videos. From these search results, users should be able to preview videos.
#2 - The user will then select a video, connect to their Facebook account, and post the video and a message to a friend's wall. Similar functionality to Step #2 can be found here: [url removed, login to view] If you notice under the card, you can connect to FB, select a friend, and post the link and your own message to their wall.