Catalyst-Authentication-Credential-FBConnect
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Credential/FBConnect.pm view on Meta::CPAN
sub BUILD {
my ($self) = @_;
$self->fbconnect; # Ensure lazy value is built.
}
sub _build_fbconnect {
my $self = shift;
WWW::Facebook::API->new(
desktop => 0,
map { $_ => $self->$_() } qw/ app_name api_key secret /
);
}
sub authenticate {
my ($self, $c, $realm, $auth_info) = @_;
my $token = $c->req->method eq 'GET'
? $c->req->query_params->{'auth_token'}
: $c->req->body_params->{'auth_token'};
( run in 0.342 second using v1.01-cache-2.11-cpan-299005ec8e3 )