This is a sample code of a working canvas app that authenticates using facebook sdk 4.0