NAME

Catalyst::Model::Facebook - The Catalyst model for the package Facebook

VERSION

version 0.101

SYNOPSIS

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

  }

DESCRIPTION

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".

CONFIG PARAMETERS

app_id

The application id you got from your http://www.facebook.com/developers/apps.php application page.

api_key

The API key you got from your http://www.facebook.com/developers/apps.php application page.

secret

The application secret you got from your http://www.facebook.com/developers/apps.php application page.

facebook_class

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.

facebook_signed_class

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.

SEE ALSO

Catalyst::Helper::Model::Facebook

Facebook

Facebook::Signed

SUPPORT

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

AUTHORS

COPYRIGHT AND LICENSE

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.