Catalyst-Authentication-Credential-Facebook-OAuth2
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Credential/Facebook/OAuth2.pm view on Meta::CPAN
scope => ['offline_access', 'publish_stream'],
});
Attempts to authenticate a user by using Facebook's OAuth 2.0 interface. This
works by generating an HTTP response that will redirect the user to a page on
L<http://facebook.com> that will ask the user to confirm our request to
authenticate him. Once that has happened, Facebook will redirect back to use and
C<authenticate> will return a user instance.
Note how this is different from most other Catalyst authentication
credentials. Successful authentication requires two requests to the Catalyst
application - one is initiated by the user, the second one is caused by Facebook
redirecting the user back to the application.
Because of that, special care has to be taken. If C<authenticate> returns a
false value, that means it set up the appropriate redirect response in
C<< $ctx->response >>. C<authenticate>'s caller should not manipulate with that
response, but finish his request processing and send the response to the user,
for example by doing C<< $ctx->detach >>.
After being redirected back to from Facebook, C<authenticate> will use the
( run in 0.224 second using v1.01-cache-2.11-cpan-4d50c553e7e )