Catalyst::Authentication::Credential::FBConnect - Facebook credential for Catalyst::Plugin::Authentication framework.
0.01
In MyApp.pm
use Catalyst qw/ Authentication Session Session::Store::FastMmap Session::State::Cookie /;
In myapp.conf
<Plugin::Authentication> default_realm facebook <realms> <facebook> <credential> class FBConnect api_key my_app_key secret my_app_secret app_name my_app_name </credential> </facebook> </realms> </Plugin::Authentication>
In controller code,
sub facebook : Local { my ($self, $c) = @_; if( $c->authenticate() ) { #do something with $c->user } }
Cosmin Budrica <cosmin@sinapticode.com>
Bogdan Lucaciu <bogdan@sinapticode.com>
With contributions from:
Tomas Doran E<lt>bobtfish@bobtfish.netE</gt>
Copyright (c) 2009 Sinapticode. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Authentication::Credential::FBConnect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Authentication::Credential::FBConnect
CPAN shell
perl -MCPAN -e shell install Catalyst::Authentication::Credential::FBConnect
For more information on module installation, please visit the detailed CPAN module installation guide.