Facebook sample code