Sample Code for Facebook Application