Whether you're developing a website with Facebook login, creating a Facebook Canvas app or Page tab, the Facebook SDK for PHP does all the heavy lifting for you making it as easy as possible to deeply integrate into the Facebook platform.
For installation & implementation instructions, look through the Getting Started with the Facebook SDK for PHP guide, and then check out some of the examples below.