URGENT! Need help in Facebook Flash Application!

I currently have a game(using Actionscript 2.0) whereby i can store the score into the database(using PHP and MySQL). But, now, i need to retrieve the facebook username to store into the database as well. How do i go about doing that?

I really do hope someone can guide me along. Thanks!