Ignore:
Timestamp:
Sep 20, 2011, 11:15:32 PM (10 years ago)
Author:
Edward Z. Yang <ezyang@mit.edu>
Branches:
master, release-1.9
Children:
68c0afd
Parents:
b7fa912
git-author:
Edward Z. Yang <ezyang@mit.edu> (07/14/11 08:58:24)
git-committer:
Edward Z. Yang <ezyang@mit.edu> (09/20/11 23:15:32)
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

    rb7fa912 r5ef98c7  
    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.