This is a sample project on how to implement Facebook into Zend Framework. You can also use it outside of Zend.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Facebook in Zend Framework

Note: This is not an entire Zend Framework install. This is only the changes that have to happen to get this working.

  1. First thing to do is to download the Facebook SDK. This will change so always check for the latest version. You will unzip it and save it under the library folder as facebook. I have included it here. I also have a stub for the facebook class as you will have to rename it to work with the autoloader.

  2. Now we will add the Josh folder under library with the facebook.php file. This is the class we will be using.

  3. We now have to load our application.ini file with our Facebook application ID and secret. We can have two different applications for production and development.

  4. Use it!

I have created a full Zend Framework install that utilizes Facebook and more at