Help: Pop-up for facebook creditental

I have a page to make automation with watir-webdriver using firefox.

http://connect.tasawr.info/?l=en&redirect_to=http://nujoomhotel.tasawr.info%3Flan%3Den

for entering facebook credential I need to enter email ids, and how to click on the button of any pop ups…I have never used pop ups and I am completely a new comer in this field.

but I dont to how to enter email id in pop ups.

pop up url: https://www.facebook.com/login.php?api_key=151490298214692&skip_api_login=1&display=popup&cancel_url=http://static.ak.fbcdn.net/connect/xd_proxy.php%23cb%3Df2e07e5f0%26origin%3Dhttp%253A%252F%252Fconnect.tasawr.info%252Ffb2600458%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df2e7bc468%26result%3D%2522xxRESULTTOKENxx%2522&fbconnect=1&next=https://www.facebook.com/dialog/permissions.request%3F_path%3Dpermissions.request%26app_id%3D479a1b24877d9f9118df2fb5f64b9764%26redirect_uri%3Dhttp%253A%252F%252Fstatic.ak.fbcdn.net%252Fconnect%252Fxd_proxy.php%2523cb%253Df2e07e5f0%2526origin%253Dhttp%25253A%25252F%25252Fconnect.tasawr.info%25252Ffb2600458%2526relation%253Dopener%2526transport%253Dpostmessage%2526frame%253Df2e7bc468%2526result%253D%252522xxRESULTTOKENxx%252522%26sdk%3Djoey%26display%3Dpopup%26api_key%3D479a1b24877d9f9118df2fb5f64b9764%26fbconnect%3D1%26locale%3Den_US%26method%3Dpermissions.request%26perms%3Demail%252Cpublish_stream%252Ccreate_event%252Crsvp_event%26return_session%3D1%26session_version%3D3%26from_login%3D1

go to get railscasts.com there is an excellent screen cast ypu can follow that