this example shows you how to use Net::Facebook::Oauth2 with Catalyst, it's not the best way of writing your catalyst controller though :P
The call back URL below is in the same block of When live test this application don't use localhost, as facebook will return an error because the callback URL must match the one you set in facebook developer platfor for your application
To install Net::Facebook::Oauth2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Facebook::Oauth2
CPAN shell
perl -MCPAN -e shell install Net::Facebook::Oauth2
For more information on module installation, please visit the detailed CPAN module installation guide.