Sample Code for Facebook app