Hi dudes!
One more job is done. Who is online application for facebook. Firstly I want to make it using xmpp - by getting the roaster list. But then I made it by Curl connection to server, saving the cookies and new Curl query to http://www.facebook.com/presence/popout.php - here you can see all your online friends and parse the information from here. I don`t show the sources - it is not difficul and if you need it - just comment.
https://login.facebook.com/login.php?login_attempt=1",true,null,"email=$EMAIL&pass=$PASSWORD - is the string for curl login to Facebook account.