OSDN Git Service

fix graph delete uri
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Sat, 20 Oct 2012 21:32:58 +0000 (06:32 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Sat, 20 Oct 2012 21:32:58 +0000 (06:32 +0900)
mubot4fb.pl

index 865568c..9a0c94b 100755 (executable)
@@ -166,7 +166,8 @@ sub _fb_post_uri {
 sub _fb_delete {
        my ($me, $post_id) = @_;
 
-       my $req = HTTP::Request::Common::DELETE($me->_fb_post_uri($post_id));
+       my $uri = $me->{fbo}->query->find($post_id)->uri_as_string;
+       my $req = HTTP::Request::Common::DELETE($uri);
        $req->header('Content-Length', 0);
        my $resp;
        eval{$resp = LWP::UserAgent->new->request($req)};