Catalyst::Authentication::Credential::FBConnect - Facebook credential for Catalyst::Plugin::Authentication framework.


Catalyst-Authentication-Credential-FBConnect documentation  | view source Contained in the Catalyst-Authentication-Credential-FBConnect distribution.

Index


NAME

Top

Catalyst::Authentication::Credential::FBConnect - Facebook credential for Catalyst::Plugin::Authentication framework.

VERSION

Top

0.01

SYNOPSIS

Top

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
       }
  }







USER METHODS

Top

$c->user->session_uid
$c->user->session_key
$c->user->session_expires

AUTHOR

Top

Cosmin Budrica <cosmin@sinapticode.com>

Bogdan Lucaciu <bogdan@sinapticode.com>

With contributions from:

  Tomas Doran E<lt>bobtfish@bobtfish.netE</gt>







COPYRIGHT

Top


Catalyst-Authentication-Credential-FBConnect documentation  | view source Contained in the Catalyst-Authentication-Credential-FBConnect distribution.