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.
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.
Now we will add the Josh folder under library with the facebook.php file. This is the class we will be using.
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.
I have created a full Zend Framework install that utilizes Facebook and more at https://github.com/johanan/Zend-Framework-Ajax-Login