Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This is a sample project on how to implement Facebook into Zend Framework. You can also use it outside of Zend.
branch: master

This branch is even with johanan:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
application
library
README.md
index.php
non_zend_facebook.php

README.md

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 https://github.com/johanan/Zend-Framework-Ajax-Login

Something went wrong with that request. Please try again.