Skip to content

Commit

Permalink
Update document links
Browse files Browse the repository at this point in the history
  • Loading branch information
oklahomer committed Jun 16, 2013
1 parent 0ffd456 commit 957ab92
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions lib/Facebook/OpenGraph.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ sub _uri {
return $uri;
}

# Using the signed_request Parameter: Step 1. Parse the signed_request
# https://developers.facebook.com/docs/howtos/login/signed-request/#step1
# Using Login with Games on Facebook: Parsing the Signed Request
# https://developers.facebook.com/docs/facebook-login/using-login-with-games/#parsingsr
sub parse_signed_request {
my ($self, $signed_request) = @_;
croak 'signed_request is not given' unless $signed_request;
Expand All @@ -107,7 +107,7 @@ sub parse_signed_request {
return $val;
}

# OAuth Dialog: Constructing a URL to the OAuth Dialog
# OAuth Dialog: Constructing a URL to the OAuth dialog
# https://developers.facebook.com/docs/reference/dialogs/oauth/
sub auth_uri {
my ($self, $param_ref) = @_;
Expand All @@ -133,8 +133,8 @@ sub set_access_token {
$self->{access_token} = $token;
}

# Login as an App: Step 1. Obtain an App Access Token
# https://developers.facebook.com/docs/howtos/login/login-as-app/#step1
# Access Tokens: App Tokens
# https://developers.facebook.com/docs/facebook-login/access-tokens/#apptokens
sub get_app_token {
my $self = shift;

Expand All @@ -143,8 +143,8 @@ sub get_app_token {
return $token_ref;
}

# Login for Server-side Apps: Step 6. Exchange the code for an Access Token
# https://developers.facebook.com/docs/howtos/login/server-side-login/#step6
# The Login Flow for Web (without JavaScript SDK): Exchanging code for an access token
# https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/#exchangecode
sub get_user_token_by_code {
my ($self, $code) = @_;

Expand Down Expand Up @@ -279,22 +279,22 @@ sub batch_fast {
}

# Facebook Query Language (FQL)
# https://developers.facebook.com/docs/reference/fql/
# https://developers.facebook.com/docs/technical-guides/fql/
sub fql {
my $self = shift;
my $query = shift;
return $self->get('/fql', +{q => $query}, @_);
}

# Facebook Query Language (FQL): Multi-query
# https://developers.facebook.com/docs/reference/fql/#multi
# https://developers.facebook.com/docs/technical-guides/fql/#multi
sub bulk_fql {
my $self = shift;
my $batch = shift;
return $self->fql($self->json->encode($batch), @_);
}

# Graph API: Deleting
# Deleting: Objects
# https://developers.facebook.com/docs/reference/api/deleting/
sub delete {
my $self = shift;
Expand Down Expand Up @@ -448,7 +448,7 @@ sub prep_param {
$param_ref->{fields} = $self->prep_fields_recursive($field_ref);
}

# Object API
# Using the Object API
# https://developers.facebook.com/docs/opengraph/using-object-api/
my $object = $param_ref->{object};
if ($object && ref $object eq 'HASH') {
Expand Down Expand Up @@ -482,16 +482,16 @@ sub prep_fields_recursive {
}
}

# How-To: Publish an Action
# https://developers.facebook.com/docs/technical-guides/opengraph/publish-action/#create
# Using Actions: Publishing Actions
# https://developers.facebook.com/docs/opengraph/using-actions/#publish
sub publish_action {
my $self = shift;
my $action = shift;
croak 'namespace is not set' unless $self->namespace;
return $self->post(sprintf('/me/%s:%s', $self->namespace, $action), @_);
}

# Test Users
# Test Users: Creating
# https://developers.facebook.com/docs/test_users/
sub create_test_users {
my $self = shift;
Expand All @@ -511,8 +511,8 @@ sub create_test_users {
return $self->batch(\@settings);
}

# Updating Objects
# https://developers.facebook.com/docs/technical-guides/opengraph/defining-an-object/#update
# Using Self-Hosted Objects: Updating Objects
# https://developers.facebook.com/docs/opengraph/using-objects/#update
sub check_object {
my ($self, $target) = @_;
my $param_ref = +{
Expand Down
2 changes: 1 addition & 1 deletion lib/Facebook/OpenGraph/Response.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub is_success {
return substr($self->code, 0, 1) == 2 || $self->code == 304;
}

# Errors
# Errors: Error codes
# https://developers.facebook.com/docs/reference/api/errors/
sub error_string {
my $self = shift;
Expand Down

0 comments on commit 957ab92

Please sign in to comment.