Changeset 83e90de for perl/modules/Facebook/lib/Facebook/Graph/Publish.pm
- Timestamp:
- Sep 19, 2011, 1:31:35 PM (13 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Facebook/lib/Facebook/Graph/Publish.pm
rc104b43 r83e90de 10 10 use LWP::UserAgent; # XXX blegh 11 11 use HTTP::Request::Common; 12 use URI::Encode qw(uri_decode );12 use URI::Encode qw(uri_decode uri_encode); 13 13 14 14 has secret => ( … … 47 47 my $uri = $self->uri; 48 48 $uri->path($self->object_name.$self->object_path); 49 # XXX blegh50 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 51 51 http_post $uri->as_string, $request->content, sub { 52 warn "whooo";53 52 my ($response, $headers) = @_; 54 53 my %params = (
Note: See TracChangeset
for help on using the changeset viewer.