FacebookAuthenticate – Database-less version has arrived.

December 19th, 2011 § 0 comments § 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.

Yahoo PlaceFinder DataSource for CakePhp 2

December 14th, 2011 § 0 comments § permalink

Need the coordinates of a location anywhere on Earth? Or how about the place name of any coordinates you provide? The Yahoo PlaceFinder datasource provides a familiar CakePhp interface for interacting with the Yahoo API.

Typical usage looks like this:

$results = $this->Location->find('all', array(
  'conditions' => array(
    'location' => $this->request->data['Location']['location'],
    'flags' => 'JE',
    'gflags' => 'ACR',
  )
));

It’s worth checking out Yahoo’s docs for the various request parameters.

The first version is over on GitHub! Get it here.

FacebookAuthenticate – Facebook authentication handler for CakePhp 2

December 6th, 2011 § 1 comment § 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.

Where Am I?

You are currently browsing the CakePhp category at Blog of Moz Morris Freelance Web Developer.

Social Widgets powered by AB-WebLog.com.