Ignore:
Timestamp:
Sep 19, 2011, 1:31:35 PM (13 years ago)
Author:
Edward Z. Yang <ezyang@mit.edu>
Children:
fd92f78
Parents:
c104b43
git-author:
Edward Z. Yang <ezyang@mit.edu> (07/14/11 08:58:24)
git-committer:
Edward Z. Yang <ezyang@mit.edu> (09/19/11 13:31:35)
Message:
Fix broken posts, better permission detection, implement deletion.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Facebook/lib/Facebook/Graph/Publish.pm

    rc104b43 r83e90de  
    1010use LWP::UserAgent; # XXX blegh
    1111use HTTP::Request::Common;
    12 use URI::Encode qw(uri_decode);
     12use URI::Encode qw(uri_decode uri_encode);
    1313
    1414has secret => (
     
    4747    my $uri = $self->uri;
    4848    $uri->path($self->object_name.$self->object_path);
    49     # XXX blegh
    50     my $request = LWP::UserAgent->new->request(POST $uri->as_string, $self->get_post_params);
     49    my $request = POST($uri->as_string,$self->get_post_params);
     50    # XXX Do this more elegantly
    5151    http_post $uri->as_string, $request->content, sub {
    52         warn "whooo";
    5352        my ($response, $headers) = @_;
    5453        my %params = (
Note: See TracChangeset for help on using the changeset viewer.