December 19th, 2011 § § permalink
FacebookAuthenticate – now database-less!
So not everybody’s going to what to maintain a User model. Perhaps all they want is just plain old Facebook Authentication whereby the user’s details are returned from Facebook and then stored in session. Well, now it’s possible.
I’ve created a database-less branch of FacebookAuthenticate. No database setup, no adding Facebook user_id & token fields – just plain old session storage for the current user.
The branch also includes a few updates that were made to the handler recently. Bonus.
Get the code over on my GitHub.
December 6th, 2011 § § permalink
Built to work with the AuthComponent using the recommended approach for building custom authentication handlers.
The purpose of the Facebook Authentication Handler is to provide Facebook Authentication for your CakePHP 2.0 or later based application. The handler has been built following Cake’s recommended approach for building custom authentication objects for use with the built in AuthComponent.
The handler itself is part a FacebookAuth plugin, though this is essentially to make the handler easily redistributable with example configuration settings and an example controller detailing a typical use case scenario.
It should be noted that though this handler stores the access token returned by Facebook, it does not currently provide a means to makes calls to the Graph API. It’s function is to provide authentication. Of course, you could use the access token and your preferred method to communicate with Facebook.
The first version is over on GitHub! Get it here.