This is the second part of using the Facebook SDK as a login mechanism. The first covered how to setup each login button and how that interacted with javascript. This post will cover how the auth adapters work with the controller to verify credentials. At this point you should know how to setup a button in the application.ini.
AuthController
The controller is called from a route. The path /oauth maps to the oauthAction and /ajax maps to the ajaxAction. The main difference between these two actions is how they respond. Oauth redirects the page and ajax responds in JSON.
init()
The init() function is run every time the controller loads before any actions. This is a great place to put code that is shared between all actions. Continue reading “Facebook SDK Login for Zend Framework Tutorial part 2”