Catalyst::Model::Facebook - The Catalyst model for the package Facebook
version 0.101
# # Config # <Model::MyModel> app_id 122038147863143 api_key e0dd54ae57bcdf6b3cac784bf80243fd secret 1b010be5853166ad425683e8d753e0af facebook_class Facebook facebook_signed_class Facebook::Signed </Model::MyModel> # # Sample controller code # sub index :Chained('base') :PathPart('') :Args { my ( $self, $c ) = @_; if ($c->model('MyModel')->uid) { $c->stash->{facebook_user_profile} = $c->model('Facebook')->graph->query ->find($c->model('MyModel')->uid) ->include_metadata ->request ->as_hashref; } }
This package wraps around the Facebook package. It uses the "facebook_cookie_class" where it gives over "app_id", "secret" and the text of the facebook cookie of this "app_id". This object will be used as cookie attribute for the construction of the "facebook_class".
The application id you got from your http://www.facebook.com/developers/apps.php application page.
The API key you got from your http://www.facebook.com/developers/apps.php application page.
The application secret you got from your http://www.facebook.com/developers/apps.php application page.
If you want to extend the Facebook class, or want to use an alternative implementation which is compatible, you can set here the class that should be used for this adapter.
With this parameter you can give him a different Facebook::Signed class which he uses for parsing the signed values for the Facebook object on construction.
Catalyst::Helper::Model::Facebook
Facebook
Facebook::Signed
IRC
Join #facebook on irc.perl.org.
Repository
http://github.com/Getty/p5-catalyt-model-facebook Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-catalyt-model-facebook/issues
Torsten Raudssus <torsten@raudssus.de> http://www.raudssus.de/
Frank Sheiness <syndesis@gmail.com>
This software is copyright (c) 2011 by Raudssus Social Software & Facebook Distribution Authors.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::Model::Facebook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Facebook
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Facebook
For more information on module installation, please visit the detailed CPAN module installation guide.