Permalink
Browse files

*::role::HTTPtoken: Add POD for attributes

  • Loading branch information...
1 parent f77e73e commit 0685c24202ad54433f7ccdae79860d4c7e437483 @tommystanton tommystanton committed Dec 12, 2012
Showing with 37 additions and 0 deletions.
  1. +37 −0 lib/Facebook/Graph/role/HTTPtoken.pm
@@ -14,6 +14,13 @@ requires qw(
request_access_token
);
+=attr postback
+
+Contains the URL (a L<URI> object) used for making the authentication
+"postback" (an HTTP GET request).
+
+=cut
+
has +postback => ( is => 'ro', required => 1 );
use HTTP::Daemon 6.00;
@@ -24,14 +31,36 @@ use URI;
# requires permissions
# can override prompt_message, success_message
+=attr code
+
+Contains the authorization code that is returned once the Facebook app
+is successfully authorized during the postback.
+
+=cut
+
has code => (
is => 'rw',
lazy_build => 1,
);
+
+=attr token
+
+Contains the token string returned while getting the value for L</code>.
+
+=cut
+
has token => (
is => 'rw',
lazy_build => 1,
);
+
+=attr permissions
+
+An arrayref containing the app's requested permissions. A list of
+possible values is available in the L<Facebook API Reference (Login)|https://developers.facebook.com/docs/reference/login/#permissions>.
+
+=cut
+
has permissions => (
is => 'ro',
default => sub { [] }
@@ -42,6 +71,14 @@ has prompt_message_fmt => (
is => 'rw',
default => "Please visit this url to authorize application:\n%s\n"
);
+
+=attr success_message
+
+Contains the text to be put in the content of a 200 HTTP response that
+is generated when L</code> is defined at run time.
+
+=cut
+
has success_message => (
is => 'rw',
default => 'Success!'

0 comments on commit 0685c24

Please sign in to comment.