I have made this with jquery,
Implimentation Step By Step
<script src="js/jquery.js"></script> <script src="js/facebookStyleInput.js"></script>
2) Creating wireframe
<link rel="stylesheet" type="text/css" href="styles/facebookStyleInput.css">add below text to your page
<div id="fb_holder"> <input type="text" name="friends" id="fb_inputbox"> </div>id=”fb_holder” can be anything you want. you can replace “fb_holder” with any other string.
4) Database Installationa) In the same directory you should find files named facebook.sql and config.php.b) Import facebook.sql to Mysql.b) Open config.php file and make neccessary changes in it.
5) Other SettingsMake sure that ajax_server.php file resides in same directory where index.php file is,but if you want to change its location then you need to make change in configuration variable named ajaxFilePath enter full path of ajax_server.php file.
6) And you are ready to go…!
Comments and suggestions are always welcome, your suggestions will help make this script more useful.so if you have suggestion do contact me at www.amitpatil.me/contact or follow me on twitter